From ecb58ebbeece07f9fe8436c1146b0db3bc271055 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 22 Jan 2008 09:58:33 +0000 Subject: [PATCH] Fixed single job start-stop handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8534 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/plugins/addons/gotomasses/class_gotomasses.inc | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc index 3f85caf56..b78a5aa6b 100644 --- a/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc +++ b/gosa-core/plugins/addons/gotomasses/class_gotomasses.inc @@ -38,9 +38,9 @@ class gotomasses extends plugin $s_entry = $s_action = ""; $arr = array( - "/^stop/" => "stop", + "/^stop_/" => "stop", "/^stop_all/" => "stop_all", - "/^start/" => "start", + "/^start_/" => "start", "/^start_all/" => "start_all", "/^edit_task_/" => "edit", @@ -58,8 +58,6 @@ class gotomasses extends plugin } } - #print_a(array($s_entry,$s_action));; - /* Edit posted from list link */ if(isset($_GET['act']) && $_GET['act'] == "edit" && isset($_GET['id']) && isset($this->tasks[$_GET['id']])){ $s_action = "edit"; @@ -71,7 +69,7 @@ class gotomasses extends plugin * Handle Priority modifications ************/ - if(preg_match("/^start_/",$s_action) || preg_match("/^stop_/",$s_action)){ + if(preg_match("/^start/",$s_action) || preg_match("/^stop/",$s_action)){ switch($s_action){ case 'start_all' :foreach($this->list_get_selected_items() as $id){ -- 2.30.2