diff --git a/op/op.SchedulerTaskMgr.php b/op/op.SchedulerTaskMgr.php index 8b327b468..45589660b 100644 --- a/op/op.SchedulerTaskMgr.php +++ b/op/op.SchedulerTaskMgr.php @@ -52,9 +52,10 @@ if ($action == "addtask") { /* {{{ */ $name = $_POST["name"]; $description = $_POST["description"]; $frequency = $_POST["frequency"]; + $disabled = isset($_POST["disabled"]) ? $_POST["disabled"] : 0; $params = $_POST["params"]; - $newtask = $scheduler->addTask($extension, $task, $name, $description, $frequency, 0, $params); + $newtask = $scheduler->addTask($extension, $task, $name, $description, $frequency, $disabled, $params); if ($newtask) { } else UI::exitError(getMLText("admin_tools"),getMLText("error_occured")); diff --git a/views/bootstrap/class.SchedulerTaskMgr.php b/views/bootstrap/class.SchedulerTaskMgr.php index da2fed19d..bc523c03f 100644 --- a/views/bootstrap/class.SchedulerTaskMgr.php +++ b/views/bootstrap/class.SchedulerTaskMgr.php @@ -134,6 +134,13 @@ $(document).ready( function() { +
+
+ +
+