From 08fa35e2faeafe088ee3ee1fcdad540785e98a7c Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 18 Mar 2008 08:30:49 +0000 Subject: [PATCH] Updated userManagement - Event notify -Added user targets. -Added check() git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@9911 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/users/class_userManagement.inc | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/gosa-core/plugins/admin/users/class_userManagement.inc b/gosa-core/plugins/admin/users/class_userManagement.inc index 4a5259f6e..5fa8b0156 100644 --- a/gosa-core/plugins/admin/users/class_userManagement.inc +++ b/gosa-core/plugins/admin/users/class_userManagement.inc @@ -174,7 +174,7 @@ class userManagement extends plugin 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); } } @@ -187,12 +187,19 @@ class userManagement extends plugin /* 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; + } } } -- 2.30.2