From 15577e1483bc851ff00a93c468e7ed37fd798e61 Mon Sep 17 00:00:00 2001 From: "Jose M. Guisado" Date: Wed, 21 Jul 2021 12:52:24 +0000 Subject: 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. --- admin/WebConsole/rest/remotepc.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'admin/WebConsole/rest/remotepc.php') 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.). -- cgit v1.2.3-18-g5258