Ver código fonte

Actualiza fecha clase

alejandro.lara 1 ano atrás
pai
commit
32f3ad0375
2 arquivos alterados com 3 adições e 2 exclusões
  1. 2 1
      action/solicitud_update.php
  2. 1 1
      solicitudes_autorizar.php

+ 2 - 1
action/solicitud_update.php

@@ -55,6 +55,7 @@ if($horario!= null && $tipo !=3)
 
     $materia = $horario_rs["materia_id"];
     $dia = $horario_rs["horario_dia"];
+    $fecha_orig = $horario_rs["horario_fecha_inicio"];
     $hora_orig = $horario_rs["horario_hora"];
 }else{
     $dia = date('w', strtotime($fecha));
@@ -99,7 +100,7 @@ switch($tipo){
         $dia_new = date('w', strtotime($fecha_new));
 
         $fecha_nueva = date('d/m/Y', strtotime($fecha_new));
-        $fecha_clase = date('d/m/Y', strtotime($fecha_cambio));
+        $fecha_clase = date('d/m/Y', strtotime($fecha_orig));
     break;
 }
 

+ 1 - 1
solicitudes_autorizar.php

@@ -784,7 +784,7 @@ if($user->periodo_id!= ""){
                             $("#modal_aprobar #rep-comentarios").text(result["comentario"]);
                             $('#modal_aprobar #rep-alumnos').text(result["alumnos"]);
 
-                            if(result["supervisor_nombre"]!=""){
+                            if(result["supervisor_nombre"]!="" && result["supervisor_nombre"]!=null){
                                 $("#supervisor").show();
                                 $("#modal_aprobar #rep-sup").text(result["supervisor_nombre"]);
                             }else{