summaryrefslogtreecommitdiffstats
path: root/admin/WebConsole/rest
diff options
context:
space:
mode:
authorJose M. Guisado <jguisado@soleta.eu>2021-07-21 12:52:24 +0000
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-07-21 17:57:42 +0200
commit15577e1483bc851ff00a93c468e7ed37fd798e61 (patch)
tree8223f94d655a2d1d79803af71bc78565533970f1 /admin/WebConsole/rest
parent66dad5f5b8798480fd9859c3d28ad7a3a132ec96 (diff)
Revert "#915 Send command id in remotepc scheduling"
Due to a regression reported in ticket #1051, ogserver scheduling falls back to use the session value instead of command id.
Diffstat (limited to 'admin/WebConsole/rest')
-rw-r--r--admin/WebConsole/rest/remotepc.php6
1 files changed, 2 insertions, 4 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php
index 5c9c7c33..6dc5a62d 100644
--- a/admin/WebConsole/rest/remotepc.php
+++ b/admin/WebConsole/rest/remotepc.php
@@ -185,8 +185,7 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$t2 = $cmd->Ejecutar();
- $id = $cmd->Autonumerico();
- create_schedule_now(strval($id),
+ create_schedule_now(strval($timestamp),
$EJECUCION_COMANDO,
"auto-queue-remotepc-reserve-".$timestamp);
// Create event to remove reservation on timeout (15 min.).
@@ -683,8 +682,7 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$cmd->Ejecutar();
- $id = $cmd->Autonumerico();
- create_schedule_now(strval($id),
+ create_schedule_now(strval($timestamp),
$EJECUCION_COMANDO,
"auto-queue-remotepc-init-".$timestamp);
// Create event to remove the operation on timeout (15 min.).