Commit 8d1d0638269c2ddd62d746554421fb0ebce3be9e

Authored by Wilmer
1 parent 68e1a5ef7c
Exists in master

arreglado algunos fallos y bugs

app/config/config.yml
... ... @@ -64,4 +64,4 @@ swiftmailer:
64 64 #host: "%mailer_host%"
65 65 username: wilmer.ramones@gmail.com
66 66 password: 07102009RR
67   - #spool: { type: memory }
  67 + spool: { type: memory }
... ...
src/AppBundle/Controller/AdscripcionController.php
... ... @@ -460,6 +460,7 @@ class AdscripcionController extends Controller
460 460 'idServicioCe' => 4),
461 461 array('id' => 'DESC')
462 462 );
  463 + $pid = false;
463 464 if($serv) {
464 465 //si el servicio está cadudado, debe solicitar uno nuevo
465 466 if ($serv->getIdEstatus()->getId() == 5) {
... ... @@ -878,7 +879,7 @@ class AdscripcionController extends Controller
878 879 'idRolInstitucion' => $adscripcion->getIdRolInstitucion()->getId()
879 880 ));
880 881  
881   - return $this->redirect($this->generateUrl('cea_adscripcion_show', array('id' => $serviciosAdscripcion->getId())));
  882 + return $this->redirect($this->generateUrl('aja', array('id' => $serviciosAdscripcion->getId())));
882 883  
883 884 }
884 885  
... ...
src/AppBundle/Controller/AjaxController.php
... ... @@ -350,6 +350,9 @@ class AjaxController extends Controller {
350 350  
351 351 }
352 352  
  353 +
  354 +
  355 +
353 356  
354 357  
355 358 /**
... ...
src/AppBundle/Controller/AppController.php
... ... @@ -64,7 +64,7 @@ class AppController extends Controller {
64 64 );
65 65 $em = $this->getDoctrine()->getManager();
66 66 if(!$pida){
67   - $this->addFlash('danger', 'Estimado Docente Mientras se verifica su adscripción, le solicitamos que por favor cree su PIDA.');
  67 + $this->addFlash('warning', 'Estimado Docente Mientras se verifica su adscripción, le solicitamos que por favor cree su PIDA.');
68 68 return $this->redirect($this->generateUrl('solicitud_pida'));
69 69 }else{
70 70 $caducidad = $this->getDoctrine()->getRepository("AppBundle:PidaCaducidad")->findOneByIdDocenteServicio($pida);
... ...
src/AppBundle/Controller/AscensoController.php
... ... @@ -708,7 +708,7 @@ class AscensoController extends Controller
708 708 $em->persist($serviciosAscenso);
709 709 $em->persist($ascenso);
710 710 $em->flush();
711   -
  711 +
712 712 $message = \Swift_Message::newInstance()
713 713 ->setSubject('Resultado Ascenso CEA@UBV')
714 714 ->setFrom('wilmer.ramones@gmail.com')
... ... @@ -724,23 +724,13 @@ class AscensoController extends Controller
724 724 )
725 725 ),
726 726 'text/html'
727   - )
  727 + )
728 728 ;
729 729 $this->get('mailer')->send($message);
730   -
  730 +
731 731 $this->addFlash('notice', 'Solicitud Actualizada Correctamente, hemos enviado un correo al docente notificandole los cambios.');
732   -
733   - $escala = $this->getDoctrine()->getRepository('AppBundle:DocenteEscala')->findBy(array(
734   - 'idRolInstitucion' => $ascenso->getIdRolInstitucion()->getId()
735   - ));
736   -
737   - $antiguedad = $this->getDoctrine()->getRepository('AppBundle:DocenteServicio')->findOneBy(array(
738   - 'idRolInstitucion' => $this->getUser()->getIdRolInstitucion(),
739   - 'idServicioCe' => 1
740   - ));
741   -
742   - $pida = $this->getDoctrine()->getRepository('AppBundle:AdscripcionPida')->findOneByIdRolInstitucion($serviciosAscenso->getIdRolInstitucion());
743   - $docente = $this->getDoctrine()->getRepository("AppBundle:RolInstitucion")->findOneById($ascenso->getIdRolInstitucion()->getId());
  732 +
  733 +
744 734 return $this->redirect($this->generateUrl('cea_ascenso_show', array('id' => $ascenso->getId())));
745 735  
746 736 }
... ...
src/AppBundle/Controller/EstadoAcademicoController.php
... ... @@ -117,6 +117,7 @@ class EstadoAcademicoController extends Controller {
117 117 $adscripcion = $this->getDoctrine()->getRepository('AppBundle:Adscripcion')->findOneByIdRolInstitucion($servicio->getIdRolInstitucion());
118 118  
119 119 return $this->render('cea/servicios_mostar.html.twig', array(
  120 + 'docente' => $servicio->getIdRolInstitucion(),
120 121 'estado_academico' => $ea,
121 122 'servicio' => $servicio,
122 123 ));
... ...