From f2fb82b9a9f1dae293c83070026ed172f5c88a14 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Mar 2008 08:34:05 +0000 Subject: [PATCH] Updated groupManagement -Updated notify event handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9913 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/groups/class_groupManagement.inc | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) 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 ... ********************/ -- 2.30.2