Code

Updated groupManagement
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Mar 2008 08:34:05 +0000 (08:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 18 Mar 2008 08:34:05 +0000 (08:34 +0000)
-Updated notify event handling

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9913 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/admin/groups/class_groupManagement.inc

index a7efcd3a3377d27f3e7452c669b98fddb8bdfb7c..4a2aa2a2ce8e93ff34f5ef33ac78ae44cf9b46bb 100644 (file)
@@ -172,7 +172,7 @@ class groupManagement extends plugin
         if(isset($events['BY_CLASS'][$event])){
           $type = $events['BY_CLASS'][$event];
           $this->grouptab = new $type['CLASS_NAME']($this->config);
-          $this->grouptab->add_targets($uids);
+          $this->grouptab->add_groups($uids);
           $this->grouptab->set_type(TRIGGERED_EVENT);
         }
       }
@@ -185,12 +185,18 @@ class groupManagement extends plugin
 
     /* Save event */
     if(isset($_POST['save_event_dialog'])){
-      $o_queue = new gosaSupportDaemon();
-      $o_queue->append($this->grouptab);
-      if($o_queue->is_error()){
-        msg_dialog::display(_("Infrastructure error"), msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
+      $this->grouptab->save_object();
+      $msgs = $this->grouptab->check();
+      if(count($msgs)){
+        msg_dialog::displayChecks($msgs);
       }else{
-        $this->grouptab = FALSE;
+        $o_queue = new gosaSupportDaemon();
+        $o_queue->append($this->grouptab);
+        if($o_queue->is_error()){
+          msg_dialog::display(_("Infrastructure error"), msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
+        }else{
+          $this->grouptab = FALSE;
+        }
       }
     }
 
@@ -201,7 +207,6 @@ class groupManagement extends plugin
     }
 
 
-
     /********************
       Copy & Paste Handling  ...
      ********************/