[Alba-desarrollo] SVN Alba r4451 - prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions

commits en pressenter.com.ar commits en pressenter.com.ar
Lun Mar 12 14:08:14 CET 2007


Author: josx
Date: 2007-03-12 10:08:13 -0300 (Mon, 12 Mar 2007)
New Revision: 4451

Modified:
   prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions/actions.class.php
Log:
Arregle un par de notice

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-12 13:05:46 UTC (rev 4450)
+++ prosistem/alba/trunk/alba/apps/principal/modules/calendario/actions/actions.class.php	2007-03-12 13:08:13 UTC (rev 4451)
@@ -294,13 +294,15 @@
                 $this->division_id = $eachDivision[0];  // me quedo con el primer indice del array
             }
 
+            if(array_key_exists($this->division_id,$aAnio)) {
+                $horasMateriasTodas = $this->getHorasMaterias($aAnio[$this->division_id]);
+                $this->horasMaterias = $this->getHorasMaterias($aAnio[$this->division_id], $actividad_id);
+                $this->getUser()->setAttribute('anio_id', $aAnio[$this->division_id]); 
+                $this->getUser()->setAttribute('division_id', $this->division_id);
+//              $this->turnos_id = $turnos_id;
+                $anio_id = $aAnio[$this->division_id];
+            }
 
-            $horasMateriasTodas = $this->getHorasMaterias($aAnio[$this->division_id]);
-            $this->horasMaterias = $this->getHorasMaterias($aAnio[$this->division_id], $actividad_id);
-            $this->getUser()->setAttribute('anio_id', $aAnio[$this->division_id]); 
-            $this->getUser()->setAttribute('division_id', $this->division_id);
-//             $this->turnos_id = $turnos_id;
-            $anio_id = $aAnio[$this->division_id];
         } else {
             $this->aHour = array(strtotime("8:00"), strtotime("17:00"));
             $this->time_interval = 15;




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