Commit 50dccdb3c37a038e2419619f19557bb86b8f9d2f
1 parent
e5c4f05f8c
Exists in
master
corregido error que no guardaba el estatus de formalizada a la solicitud de asce…
…nso para así poder saber si puede volver a solicitar ascenso y si tiene solicitud activa para poder enviar el documento de ascenso
Showing
1 changed file
with
10 additions
and
1 deletions
Show diff stats
src/AppBundle/Controller/AscensoController.php
| ... | ... | @@ -480,13 +480,22 @@ class AscensoController extends Controller |
| 480 | 480 | $em->persist($escala_docente); |
| 481 | 481 | |
| 482 | 482 | if ($this->get('request')->request->get('tipo') == 2 ){ |
| 483 | - $ascenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( | |
| 483 | + $ServicioAscenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( | |
| 484 | 484 | 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), |
| 485 | 485 | 'idServicioCe' => 5, |
| 486 | 486 | 'idEstatus' => 1 |
| 487 | 487 | )); |
| 488 | 488 | |
| 489 | + | |
| 490 | + $ascenso = $this->getDoctrine()->getRepository('AppBundle:Ascenso')->findOneBy(array( | |
| 491 | + 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), | |
| 492 | + 'idEstatus' => 1 | |
| 493 | + )); | |
| 494 | + | |
| 495 | + | |
| 496 | + $ServicioAscenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); | |
| 489 | 497 | $ascenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); |
| 498 | + $em->persist($ServicioAscenso); | |
| 490 | 499 | $em->persist($ascenso); |
| 491 | 500 | } |
| 492 | 501 | ... | ... |