Code

Fixed single job start-stop handling
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Jan 2008 09:58:33 +0000 (09:58 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 22 Jan 2008 09:58:33 +0000 (09:58 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8534 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/addons/gotomasses/class_gotomasses.inc

index 3f85caf56002b2549d6f982edbe2746bf57af612..b78a5aa6bd389401a357ea40afee3685e415aeb3 100644 (file)
@@ -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){