[Alba-desarrollo] SVN Alba r4014 - in prosistem/alba/trunk/alba/apps/principal/modules/division: actions templates validate

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Ene 15 18:12:23 CET 2007


Author: josx
Date: 2007-01-15 14:12:22 -0300 (Mon, 15 Jan 2007)
New Revision: 4014

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/division/actions/acti=
ons.class.php
   prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_f=
k_turnos_id.php
   prosistem/alba/trunk/alba/apps/principal/modules/division/validate/edi=
t.yml
Log:
Problemas de validacion al dar de alta divisiones ( ticket #96 )

Modified: prosistem/alba/trunk/alba/apps/principal/modules/division/actio=
ns/actions.class.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/division/actions/act=
ions.class.php	2007-01-15 16:20:46 UTC (rev 4013)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/actions/act=
ions.class.php	2007-01-15 17:12:22 UTC (rev 4014)
@@ -23,8 +23,8 @@
  * division Acciones
  *
  * @package    alba
- * @author     Jos=E9 Luis Di Biase <josx en interorganic.com.ar>
- * @author     H=E9ctor Sanchez <hsanchez en pressenter.com.ar>
+ * @author     Jos=EF=BF=BDLuis Di Biase <josx en interorganic.com.ar>
+ * @author     H=EF=BF=BDtor Sanchez <hsanchez en pressenter.com.ar>
  * @author     Fernando Toledo <ftoledo en pressenter.com.ar>
  * @version    SVN: $Id$
  * @filesource
@@ -36,8 +36,8 @@
=20
      protected function addFiltersCriteria(&$c)
      {
-         $c->addJoin(DivisionPeer::FK_TURNOS_ID, TurnosPeer::ID, Criteri=
a::LEFT_JOIN);
-         $c->addJoin(TurnosPeer::FK_CICLOLECTIVO_ID, CiclolectivoPeer::I=
D, Criteria::LEFT_JOIN);
+         $c->addJoin(DivisionPeer::FK_TURNOS_ID, TurnosPeer::ID);
+         $c->addJoin(TurnosPeer::FK_CICLOLECTIVO_ID, CiclolectivoPeer::I=
D);
          $c->add(CiclolectivoPeer::FK_ESTABLECIMIENTO_ID, $this->getUser=
()->getAttribute('fk_establecimiento_id'));
      }
=20

Modified: prosistem/alba/trunk/alba/apps/principal/modules/division/templ=
ates/_fk_turnos_id.php
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_=
fk_turnos_id.php	2007-01-15 16:20:46 UTC (rev 4013)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/templates/_=
fk_turnos_id.php	2007-01-15 17:12:22 UTC (rev 4014)
@@ -4,7 +4,7 @@
     $criteriaT->addJoin(TurnosPeer::FK_CICLOLECTIVO_ID, CiclolectivoPeer=
::ID);
     $turnos =3D TurnosPeer::doSelect($criteriaT);
     $optionsTurnos =3D array();
-    $optionsTurnos[] =3D ">>Seleccione un Turno<<";  =20
+    $optionsTurnos[""] =3D ">>Seleccione un Turno<<";  =20
     foreach ($turnos as $turno) {
         $optionsTurnos[$turno->getId()] =3D $turno->getDescripcion();
     }

Modified: prosistem/alba/trunk/alba/apps/principal/modules/division/valid=
ate/edit.yml
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- prosistem/alba/trunk/alba/apps/principal/modules/division/validate/ed=
it.yml	2007-01-15 16:20:46 UTC (rev 4013)
+++ prosistem/alba/trunk/alba/apps/principal/modules/division/validate/ed=
it.yml	2007-01-15 17:12:22 UTC (rev 4014)
@@ -1,6 +1,8 @@
 methods:
   post:      =20
     - "division{descripcion}"   =20
+    - "division{fk_anio_id}"
+    - "division{fk_turnos_id}" =20
    =20
 fillin:
     enabled:       on
@@ -10,6 +12,15 @@
         required:     Yes
         required_msg: El campo descripci&oacute;n es obligatorio
         validators: caracteresMaximos255
+
+    division{fk_turnos_id}:
+        required:     Yes
+        required_msg: El campo Turnos es obligatorio
+
+    division{fk_anio_id}:
+        required:     Yes
+        required_msg: El campo A&ntilde;o es obligatorio
+
        =20
 caracteresMaximos255:
     class:  sfStringValidator




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