summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ec0e782)
raw | patch | inline | side by side (parent: ec0e782)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Jan 2010 09:40:54 +0000 (09:40 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Fri, 22 Jan 2010 09:40:54 +0000 (09:40 +0000) |
-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
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15248 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc | patch | blob | history | |
gosa-plugins/goto/addons/goto/events/eventTargetUser-filter.xml | patch | blob | history |
diff --git a/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc b/gosa-plugins/goto/addons/goto/events/class_EventAddUserDialog.inc
index 0a17e032cdfbc5eeff8c041884f07b1f018f9401..a93a7230f6dce630e68fa0e297053ed1c7052b1c 100644 (file)
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 e08a9d1e7bef682ba1ec8b45412a9f89a92b5022..9267e214471d6f188b9b2fc32b5d62f53160a1aa 100644 (file)
<attribute>dn</attribute>
<attribute>objectClass</attribute>
<attribute>cn</attribute>
+ <attribute>uid</attribute>
<attribute>description</attribute>
</query>
<scope>auto</scope>