From: hickert Date: Fri, 22 Jan 2010 09:40:54 +0000 (+0000) Subject: Updated user selection X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8d47fd1eb389135568a11ad445205f9c22bebe4f;p=gosa.git Updated user selection -We are now able again to add users to events git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15248 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc b/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc index 0a17e032c..a93a7230f 100644 --- a/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc +++ b/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc @@ -66,7 +66,16 @@ class EventAddUserDialog extends management function get_selected_targets() { $entries = $this->save(); - return($entries); + $a_targets = array("USERS" => array(),"GROUPS" => array()); + foreach($entries as $entry){ + if(in_array("posixGroup",$entry['objectClass'])){ + $a_targets['GROUPS'][] = $entry['cn'][0]; + } + if(in_array("gosaAccount",$entry['objectClass'])){ + $a_targets['USERS'][] = $entry['uid'][0]; + } + } + return($a_targets); } } // vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler: diff --git a/gosa-plugins/goto/addons/goto/events/eventTargetUser-filter.xml b/gosa-plugins/goto/addons/goto/events/eventTargetUser-filter.xml index e08a9d1e7..9267e2144 100644 --- a/gosa-plugins/goto/addons/goto/events/eventTargetUser-filter.xml +++ b/gosa-plugins/goto/addons/goto/events/eventTargetUser-filter.xml @@ -14,6 +14,7 @@ dn objectClass cn + uid description auto