From 50dccdb3c37a038e2419619f19557bb86b8f9d2f Mon Sep 17 00:00:00 2001 From: Wilmer Ramones Date: Mon, 17 Oct 2016 14:40:25 -0400 Subject: [PATCH] =?UTF-8?q?corregido=20error=20que=20no=20guardaba=20el=20?= =?UTF-8?q?estatus=20de=20formalizada=20a=20la=20solicitud=20de=20ascenso?= =?UTF-8?q?=20para=20as=C3=AD=20poder=20saber=20si=20puede=20volver=20a=20?= =?UTF-8?q?solicitar=20ascenso=20y=20si=20tiene=20solicitud=20activa=20par?= =?UTF-8?q?a=20poder=20enviar=20el=20documento=20de=20ascenso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/AppBundle/Controller/AscensoController.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/AppBundle/Controller/AscensoController.php b/src/AppBundle/Controller/AscensoController.php index eddc587..106bae6 100644 --- a/src/AppBundle/Controller/AscensoController.php +++ b/src/AppBundle/Controller/AscensoController.php @@ -480,13 +480,22 @@ class AscensoController extends Controller $em->persist($escala_docente); if ($this->get('request')->request->get('tipo') == 2 ){ - $ascenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( + $ServicioAscenso = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array( 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), 'idServicioCe' => 5, 'idEstatus' => 1 )); + + $ascenso = $this->getDoctrine()->getRepository('AppBundle:Ascenso')->findOneBy(array( + 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(), + 'idEstatus' => 1 + )); + + + $ServicioAscenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); $ascenso->setIdEstatus($this->getDoctrine()->getRepository('AppBundle:Estatus')->findOneById(4)); + $em->persist($ServicioAscenso); $em->persist($ascenso); } -- 2.0.0