summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8113f2c)
raw | patch | inline | side by side (parent: 8113f2c)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 Mar 2008 08:34:05 +0000 (08:34 +0000) | ||
committer | hickert <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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9913 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/groups/class_groupManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/groups/class_groupManagement.inc b/gosa-core/plugins/admin/groups/class_groupManagement.inc
index a7efcd3a3377d27f3e7452c669b98fddb8bdfb7c..4a2aa2a2ce8e93ff34f5ef33ac78ae44cf9b46bb 100644 (file)
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);
}
}
/* 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;
+ }
}
}
}
-
/********************
Copy & Paste Handling ...
********************/