diff options
author | Javier Sánchez Parra <jsanchez@soleta.eu> | 2020-05-13 16:33:38 +0200 |
---|---|---|
committer | OpenGnSys Support Team <soporte-og@soleta.eu> | 2020-06-02 12:32:36 +0200 |
commit | d1de0b2d59c5b20e5445816a5badbab4ee7e7adb (patch) | |
tree | 15a4386649c52d06d92e75104c0c4b3540de70ee /admin/WebConsole/includes | |
parent | 3b6c2d83ef751145d5c387c537797dd9e4adb8af (diff) |
#942 Fix immediate procedures (web)
Diffstat (limited to 'admin/WebConsole/includes')
-rw-r--r-- | admin/WebConsole/includes/restfunctions.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/admin/WebConsole/includes/restfunctions.php b/admin/WebConsole/includes/restfunctions.php index 6abe56e0..b1355e36 100644 --- a/admin/WebConsole/includes/restfunctions.php +++ b/admin/WebConsole/includes/restfunctions.php @@ -76,8 +76,10 @@ define('OG_REST_PARAM_AM_PM', 'am_pm'); define('OG_REST_PARAM_MINUTES', 'minutes'); define('TYPE_COMMAND', 1); +define('TYPE_PROCEDURE', 2); define('TYPE_TASK', 3); define('OG_SCHEDULE_COMMAND', 'command'); +define('OG_SCHEDULE_PROCEDURE', 'procedure'); define('OG_SCHEDULE_TASK', 'task'); $conf_file = parse_ini_file(__DIR__ . '/../../etc/ogAdmServer.cfg'); @@ -586,6 +588,9 @@ function create_schedule($task_id, $type, $name, $years, $months, $weeks, case TYPE_COMMAND: $type_string = OG_SCHEDULE_COMMAND; break; + case TYPE_PROCEDURE: + $type_string = OG_SCHEDULE_PROCEDURE; + break; case TYPE_TASK: default: $type_string = OG_SCHEDULE_TASK; |