Commit a2b0cd943abee50ab18ea7138d66b41d53447e51
1 parent
d0f7542d0c
Exists in
master
corregido que tambien el estatus activo impida crear una nueva solicitud de ascenso
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/AppBundle/Controller/AscensoController.php
... | ... | @@ -33,10 +33,10 @@ class AscensoController extends Controller |
33 | 33 | |
34 | 34 | //si ya tiene una solicitud en espera, enviarlo a la pagina de los servicios |
35 | 35 | $solicitud = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy( |
36 | - array('idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), 'idServicioCe' => 5, 'idEstatus' => 2) | |
36 | + array('idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), 'idServicioCe' => 5) | |
37 | 37 | ); |
38 | 38 | |
39 | - if($solicitud){ | |
39 | + if($solicitud->getIdEstatus()->getId() != 5 ){ | |
40 | 40 | return $this->redirect($this->generateUrl('servicios_index')); |
41 | 41 | } |
42 | 42 | ... | ... |