diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-03-11 10:19:45 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-03-11 12:47:32 +0100 |
commit | afbfe2ad7df10b3d90555dee1089030b6bfd25b5 (patch) | |
tree | 413aac79110e9505f808025d6be1aa3615d86bc3 /admin/WebConsole/comandos | |
parent | 3a2feab4fc7e37f00cd2f24c822bf35a7a1305f9 (diff) |
#1032 Use create_schedule_now for immediate logged commands
Avoid stale commands from being executed when given a time schedule that
include past dates, ie. when they are manually scheduled.
Use create_schedule_now for immediate execution commands (no manual
schedule) that the user want to be logged (by automatic scheduling to
the right moment they are processed).
Fixes #1032 (https://opengnsys.es/trac/ticket/1032#comment:2)
Diffstat (limited to 'admin/WebConsole/comandos')
-rw-r--r-- | admin/WebConsole/comandos/gestores/gestor_Comandos.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/admin/WebConsole/comandos/gestores/gestor_Comandos.php b/admin/WebConsole/comandos/gestores/gestor_Comandos.php index f8b283d4..e6ba4ef7 100644 --- a/admin/WebConsole/comandos/gestores/gestor_Comandos.php +++ b/admin/WebConsole/comandos/gestores/gestor_Comandos.php @@ -257,7 +257,7 @@ if($sw_ejya=='on' || $sw_ejprg=="on" ){ if($sw_ejya=='on'){ if ($sw_seguimiento == 1) { $when = now_params(); - $resul = create_schedule(strval($sesion), + $resul = create_schedule_now(strval($sesion), $EJECUCION_PROCEDIMIENTO, "", $when['map_year'], $when['map_month'], |