Permalink
Browse files

#23 Generar horario por sección

división: Fix opciones de division segun ciclo lectivo
1 parent 9413506 commit 8d13ae3ea2a2abc0c49c8c8fa30ce6fd45b68695 @miguelgarcia miguelgarcia committed Apr 14, 2013
@@ -26,6 +26,7 @@
* @author José Luis Di Biase <josx@interorganic.com.ar>
* @author Héctor Sanchez <hsanchez@pressenter.com.ar>
* @author Fernando Toledo <ftoledo@pressenter.com.ar>
+ * @author Miguel García <mgarcia@pressenter.com.ar>
* @version SVN: $Id: actions.class.php 4492 2007-03-19 14:59:17Z josx $
* @filesource
* @license GPL
@@ -149,6 +150,11 @@ protected function updateRelDivisionActividadDocenteFromRequest($fk_evento_id =
}
-
+ protected function addFiltersCriteria($c)
+ {
+ $c->addJoin(RelDivisionActividadDocentePeer::FK_DIVISION_ID, DivisionPeer::ID);
+ $c->addJoin(DivisionPeer::FK_TURNO_ID,TurnoPeer::ID);
+ $c->add(TurnoPeer::FK_CICLOLECTIVO_ID,$this->getUser()->getAttribute('fk_ciclolectivo_id'));
+ }
}
?>
@@ -23,9 +23,10 @@
<?php $value = object_select_tag($rel_division_actividad_docente, 'getFkDivisionId', array (
'related_class' => 'Division',
+ 'peer_method' => 'getDivisiones',
'control_name' => 'rel_division_actividad_docente[fk_division_id]',
'include_blank' => true,
-)); echo $value ? $value : '&nbsp;';
+)); echo $value ? $value : '&nbsp;';
echo observe_field('rel_division_actividad_docente_fk_division_id',
array( 'update' => 'item_actividad',

0 comments on commit 8d13ae3

Please sign in to comment.