From edd6171f8bd5f445edc8ce3ca313401861142d3d Mon Sep 17 00:00:00 2001 From: Javier Sánchez Parra Date: Thu, 10 Jun 2021 15:46:08 +0200 Subject: #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. --- admin/WebConsole/rest/remotepc.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'admin/WebConsole/rest/remotepc.php') 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.). -- cgit v1.2.3-18-g5258