[Alba-desarrollo] SVN Alba r5136 -
prosistem/alba/trunk/alba/apps/principal/modules/docente/actions
commits en pressenter.com.ar
commits en pressenter.com.ar
Lun Sep 24 20:59:15 CEST 2007
Author: hsanchez
Date: 2007-09-24 15:59:14 -0300 (Mon, 24 Sep 2007)
New Revision: 5136
Modified:
prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php
Log:
Corrigiendo el filtro que no funcionaba
Modified: prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php 2007-09-24 18:25:14 UTC (rev 5135)
+++ prosistem/alba/trunk/alba/apps/principal/modules/docente/actions/actions.class.php 2007-09-24 18:59:14 UTC (rev 5136)
@@ -87,6 +87,14 @@
protected function addFiltersCriteria($c)
{
+ if(isset($this->filters['apellido']) && $this->filters['apellido'] != '') {
+ $cton1 = $c->getNewCriterion(DocentePeer::APELLIDO, "%".$this->filters['apellido']."%", Criteria::LIKE);
+ $c->add($cton1);
+ }
+ if(isset($this->filters['nombre']) && $this->filters['nombre'] != '') {
+ $cton2 = $c->getNewCriterion(DocentePeer::NOMBRE, "%".$this->filters['nombre']."%", Criteria::LIKE);
+ $c->add($cton2);
+ }
$c->addJoin(DocentePeer::ID,RelDocenteEstablecimientoPeer::FK_DOCENTE_ID, Criteria::LEFT_JOIN);
$c->add(RelDocenteEstablecimientoPeer::FK_ESTABLECIMIENTO_ID, $this->getUser()->getAttribute('fk_establecimiento_id'));
}
Más información sobre la lista de distribución Alba-desarrollo