summaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
authorJavier Sánchez Parra <jsanchez@soleta.eu>2021-06-10 15:46:08 +0200
committerOpenGnSys Support Team <soporte-og@soleta.eu>2021-06-16 12:16:43 +0200
commitedd6171f8bd5f445edc8ce3ca313401861142d3d (patch)
tree43bfb093c5aaca3e886a3e4899b38b0a62e5fad5 /admin
parentc17ffa5d032a82e8eca61481dd8a8adb8b3fc5b1 (diff)
#915 Send command id in remotepc scheduling
Send command (formerly action) id on remotepc scheduling, instead of session number. Otherwise, ogServer can not find the command in the database. This patch is necessary because commit 076a797 in ogServer repo changes command query filter from session to id.
Diffstat (limited to 'admin')
-rw-r--r--admin/WebConsole/rest/remotepc.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/admin/WebConsole/rest/remotepc.php b/admin/WebConsole/rest/remotepc.php
index 6dc5a62d..5c9c7c33 100644
--- a/admin/WebConsole/rest/remotepc.php
+++ b/admin/WebConsole/rest/remotepc.php
@@ -185,7 +185,8 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$t2 = $cmd->Ejecutar();
- create_schedule_now(strval($timestamp),
+ $id = $cmd->Autonumerico();
+ create_schedule_now(strval($id),
$EJECUCION_COMANDO,
"auto-queue-remotepc-reserve-".$timestamp);
// Create event to remove reservation on timeout (15 min.).
@@ -682,7 +683,8 @@ INSERT INTO acciones
idcentro=$ouid;
EOD;
$cmd->Ejecutar();
- create_schedule_now(strval($timestamp),
+ $id = $cmd->Autonumerico();
+ create_schedule_now(strval($id),
$EJECUCION_COMANDO,
"auto-queue-remotepc-init-".$timestamp);
// Create event to remove the operation on timeout (15 min.).