[Alba-desarrollo] SVN Alba r4474 - in prosistem/alba/trunk/alba/apps/principal/modules/calendario: actions validate

commits en pressenter.com.ar commits en pressenter.com.ar
Mie Mar 14 17:57:29 CET 2007


Author: josx
Date: 2007-03-14 13:57:28 -0300 (Wed, 14 Mar 2007)
New Revision: 4474

Added:
   prosistem/alba/trunk/alba/apps/principal/modules/calendario/validate/index.yml
Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions/actions.class.php
Log:
Error de turnos en calendario #187

Modified: prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions/actions.class.php
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions/actions.class.php	2007-03-14 16:23:34 UTC (rev 4473)
+++ prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions/actions.class.php	2007-03-14 16:57:28 UTC (rev 4474)
@@ -264,7 +264,7 @@
                 $this->time_interval = 15;
             }
 
-
+           
             $this->aHour = array(strtotime($turno->getHoraInicio()), strtotime($turno->getHoraFin()));
 
 
@@ -651,4 +651,11 @@
         return $turnos;
     }
 
+
+    public function handleErrorIndex() {
+        $this->redirect('calendario');
+    }
+
 }
+
+?>
\ No newline at end of file

Added: prosistem/alba/trunk/alba/apps/principal/modules/calendario/validate/index.yml
===================================================================
--- prosistem/alba/trunk/alba/apps/principal/modules/calendario/validate/index.yml	2007-03-14 16:23:34 UTC (rev 4473)
+++ prosistem/alba/trunk/alba/apps/principal/modules/calendario/validate/index.yml	2007-03-14 16:57:28 UTC (rev 4474)
@@ -0,0 +1,7 @@
+methods:
+  post:  [ turnos_id ]
+
+names:
+    turnos_id:
+        required:     Yes
+        required_msg: El campo turno es obligatorio


Property changes on: prosistem/alba/trunk/alba/apps/principal/modules/calendario/validate/index.yml
___________________________________________________________________
Name: svn:keywords
   + "Id Author URL Date Rev"




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