summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: c3d8f38)
raw | patch | inline | side by side (parent: c3d8f38)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 Mar 2008 08:30:49 +0000 (08:30 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 18 Mar 2008 08:30:49 +0000 (08:30 +0000) |
-Added user targets.
-Added check()
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9911 594d385d-05f5-0310-b6e9-bd551577e9d8
-Added check()
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9911 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-core/plugins/admin/users/class_userManagement.inc | patch | blob | history |
diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc
index 4a5259f6eac0d05b91c648afe0a0298f962954ee..5fa8b015666189b885218a0ba214fde962e768eb 100644 (file)
if(isset($events['BY_CLASS'][$event])){
$type = $events['BY_CLASS'][$event];
$this->usertab = new $type['CLASS_NAME']($this->config);
- $this->usertab->add_targets($uids);
+ $this->usertab->add_users($uids);
$this->usertab->set_type(TRIGGERED_EVENT);
}
}
/* Save event */
if(isset($_POST['save_event_dialog'])){
- $o_queue = new gosaSupportDaemon();
- $o_queue->append($this->usertab);
- if($o_queue->is_error()){
- msg_dialog::display(_("Infrastructure error"), msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
+ $this->usertab->save_object();
+ $msgs = $this->usertab->check();
+ if(count($msgs)){
+ msg_dialog::displayChecks($msgs);
}else{
- $this->usertab = FALSE;
+
+ $o_queue = new gosaSupportDaemon();
+ $o_queue->append($this->usertab);
+ if($o_queue->is_error()){
+ msg_dialog::display(_("Infrastructure error"), msgPool::siError($o_queue->get_error()),ERROR_DIALOG);
+ }else{
+ $this->usertab = FALSE;
+ }
}
}