From: hickert Date: Tue, 18 Mar 2008 08:34:05 +0000 (+0000) Subject: Updated groupManagement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=f2fb82b9a9f1dae293c83070026ed172f5c88a14;hp=8113f2c37408c341cd03ff146f5aaaa8f23b5936;p=gosa.git Updated groupManagement -Updated notify event handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9913 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc index a7efcd3a3..4a2aa2a2c 100644 --- a/gosa-core/plugins/admin/groups/class_groupManagement.inc +++ b/gosa-core/plugins/admin/groups/class_groupManagement.inc @@ -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 ... ********************/