diff options
author | Jose M. Guisado <jguisado@soleta.eu> | 2021-03-11 13:47:13 +0100 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2021-03-11 14:18:42 +0100 |
commit | ac2d1cc7e4de0632d458c69d3305c72d1d4b6156 (patch) | |
tree | d0d862fae15ee15d0e8342b383a7213b849a8741 /admin/WebConsole/gestores/gestor_ejecutaracciones.php | |
parent | afbfe2ad7df10b3d90555dee1089030b6bfd25b5 (diff) |
#1032 Use create_schedule_now for tasks and procedures
Commit afbfe2a introduced create_schedule_now for commands. Adapt
procedures and task to use it instead. Drop $when variable as it is no
longer needed for "immediate scheduling" execution of commands,
procedures or tasks.
Fixes: afbfe2a (Use create_schedule_now for immediate logged commands)
Diffstat (limited to 'admin/WebConsole/gestores/gestor_ejecutaracciones.php')
-rw-r--r-- | admin/WebConsole/gestores/gestor_ejecutaracciones.php | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/admin/WebConsole/gestores/gestor_ejecutaracciones.php b/admin/WebConsole/gestores/gestor_ejecutaracciones.php index 5349e1d0..90aa5771 100644 --- a/admin/WebConsole/gestores/gestor_ejecutaracciones.php +++ b/admin/WebConsole/gestores/gestor_ejecutaracciones.php @@ -243,12 +243,7 @@ function insertaComando($idcomando,$parametros,$idprocedimiento,$ambito,$idambit "WHERE idaccion = @sesion"; $resul=$cmd->Ejecutar(); if (resul) { - $when = now_params(); - $resul = create_schedule(strval($sesion), $EJECUCION_PROCEDIMIENTO, "", - $when['map_year'], $when['map_month'], - 0, 0, $when['map_day'], - $when['map_hour'], $when['map_am_pm'], - $when['map_minute']); + $resul = create_schedule_now(strval($sesion), $EJECUCION_PROCEDIMIENTO, ""); } return(true); } |