Commit 4bb5b21557dd8cfc4a59a5500b57b61a9836a44f
1 parent
1757df4926
Exists in
master
modificada la solicitud de antiguedad con los nuevos parametros verticales de los documentos
Showing
1 changed file
with
5 additions
and
2 deletions
Show diff stats
src/AppBundle/Controller/AntiguedadController.php
... | ... | @@ -43,9 +43,12 @@ class AntiguedadController extends Controller { |
43 | 43 | */ |
44 | 44 | public function serviciosAntiguedadIndexAction(){ |
45 | 45 | |
46 | - $adscripcion = $this->getDoctrine()->getRepository("AppBundle:Adscripcion")->findOneByIdRolInstitucion($this->getUser()->getIdRolInstitucion()); | |
46 | + $oposicion = $this->getDoctrine()->getRepository("AppBundle:DocumentosVerificados")->findOneBy(array( | |
47 | + 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), | |
48 | + 'idTipoDocumentos' => 4 | |
49 | + )); | |
47 | 50 | |
48 | - if (!$adscripcion->getOposicion() ){ | |
51 | + if (!$oposicion ){ | |
49 | 52 | $this->addFlash('danger', 'Estimado docente el CEA le informa que para gozar de este servicio, debe haber aprobado concurso de oposición.'); |
50 | 53 | return $this->redirect($this->generateUrl('cea_index')); |
51 | 54 | } | ... | ... |