diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2020-12-17 11:19:50 +0000 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-12-17 13:23:32 +0100 |
commit | 06d220975c26b86537a9055f897177550919b8fc (patch) | |
tree | 40a175070d2171f277429cc69b8e90d6d14ab885 /admin/WebConsole/gestores | |
parent | 0595bdf1f433073ed24d39eb3d20a059c60f5922 (diff) |
#1015 Fix updateBootMode and use it when updating computer info
When a computer info is updated sometimes their related pxe files need
to be updated accordingly.
In order to recreate the file the function createBootMode was being
used inside gestor_ordenadores.
Eg: createBootMode ($cmd, $arranque, $ip, $idioma)
This had some problems because the POST message to gestor_ordenadores
was sometimes lacking the ip field. This field is not necessary because
updateBootMode takes the id of the computer and queries the database for
the ip of the computer associated with it.
Use updateBootMode ($cmd, "idordenador", $idordenador, $idioma) instead.
Fixes related mass updater and "moving pc to another classroom" issues.
Diffstat (limited to 'admin/WebConsole/gestores')
-rw-r--r-- | admin/WebConsole/gestores/gestor_ordenadores.php | 2 |
1 files changed, 1 insertions, 1 deletions
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; |