diff options
-rw-r--r-- | admin/WebConsole/comandos/MoverordenadoresAulas.php | 2 | ||||
-rw-r--r-- | admin/WebConsole/gestores/gestor_ordenadores.php | 2 | ||||
-rw-r--r-- | admin/WebConsole/includes/tftputils.php | 2 |
3 files changed, 4 insertions, 2 deletions
diff --git a/admin/WebConsole/comandos/MoverordenadoresAulas.php b/admin/WebConsole/comandos/MoverordenadoresAulas.php index fc2d0020..b2b45158 100644 --- a/admin/WebConsole/comandos/MoverordenadoresAulas.php +++ b/admin/WebConsole/comandos/MoverordenadoresAulas.php @@ -19,6 +19,7 @@ include_once("../includes/HTMLCTESELECT.php"); include_once("../includes/TomaDato.php"); include_once("../includes/RecopilaIpesMacs.php"); include_once("../includes/opcionesprotocolos.php"); +include_once("../includes/tftputils.php"); include_once("../idiomas/php/".$idioma."/comandos/moverordenadoresAulas_".$idioma.".php"); //________________________________________________________________________________________________________ //include_once("./includes/capturaacciones.php"); @@ -153,6 +154,7 @@ if($confmovord == "si" ){ $cmd->texto = "UPDATE ordenadores SET idaula=$idaulamov, grupoid=0 WHERE idordenador=$idordmov"; $resulm=$cmd->Ejecutar(); ### AGP ###################################################################################### + updateBootMode($cmd, "idordenador", $idordmov, $idioma); } } }else{echo "<script>comprobarord();</script>";} diff --git a/admin/WebConsole/gestores/gestor_ordenadores.php b/admin/WebConsole/gestores/gestor_ordenadores.php index 165aaba4..e9f3c79f 100644 --- a/admin/WebConsole/gestores/gestor_ordenadores.php +++ b/admin/WebConsole/gestores/gestor_ordenadores.php @@ -323,7 +323,7 @@ EOD; $cmd->texto="UPDATE ordenadores SET idaula=@idaula, grupoid=@grupoid WHERE idordenador=@idordenador"; $resul=$cmd->Ejecutar(); // Actualizar fichero TFTP/PXE a partir de la plantilla asociada. - createBootMode ($cmd, $arranque, $ip, $idioma); + updateBootMode ($cmd, "idordenador", $idordenador, $idioma); break; default: break; diff --git a/admin/WebConsole/includes/tftputils.php b/admin/WebConsole/includes/tftputils.php index 5c97867c..f35e28d5 100644 --- a/admin/WebConsole/includes/tftputils.php +++ b/admin/WebConsole/includes/tftputils.php @@ -151,7 +151,7 @@ function updateBootMode ($cmd, $idfield, $idvalue, $lang) { $rs->Primero(); while (! $rs->EOF) { $ip = $rs->campos["ip"]; - if (! empty ($hostname)) { + if (! empty ($ip)) { $bootopt=$rs->campos["bootopt"]; // Volver a crear el fichero de arranque. |