[Alba-desarrollo] SVN Alba r5145 - prosistem/alba/trunk/alba/apps/principal/modules/locacion/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Sep 24 22:28:28 CEST 2007


Author: hsanchez
Date: 2007-09-24 17:28:27 -0300 (Mon, 24 Sep 2007)
New Revision: 5145

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/locacion/actions/actions.class.php
Log:
Corrigiendo el filtro de locaciones

Modified: prosistem/alba/trunk/alba/apps/principal/modules/locacion/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/locacion/actions/actions.class.php	2007-09-24 20:11:20 UTC (rev 5144)
+++ prosistem/alba/trunk/alba/apps/principal/modules/locacion/actions/actions.class.php	2007-09-24 20:28:27 UTC (rev 5145)
@@ -88,5 +88,11 @@
         $c->add(ProvinciaPeer::FK_PAIS_ID, $this->pais_id);
         $this->provincias = ProvinciaPeer::getEnOrden($c);
     }
+
+    protected function addFiltersCriteria($c){
+        if (isset($this->filters['nombre']) && $this->filters['nombre'] !== ''){
+            $c->add(LocacionPeer::NOMBRE, "%". $this->filters['nombre']."%", Criteria::LIKE);
+        }
+    }
 }
 ?>




Más información sobre la lista de distribución Alba-desarrollo