summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: f9e2a15)
raw | patch | inline | side by side (parent: f9e2a15)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 Apr 2007 13:32:40 +0000 (13:32 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 23 Apr 2007 13:32:40 +0000 (13:32 +0000) |
If there was no valid base selected, the user-dn was used instead of the currently shown base.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6175 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@6175 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/admin/users/class_divListUsers.inc | patch | blob | history |
diff --git a/plugins/admin/users/class_divListUsers.inc b/plugins/admin/users/class_divListUsers.inc
index e5cec852ed47bcb8d3f472d32d6515e5bae98cdb..87ad2017afb63b07cc534772a62537c233e73cd0 100644 (file)
$ui= get_userinfo();
$tdeps= $ui->get_module_departments("users");
$ids = $this->config->idepartments;
+ $first = "";
+ $found = FALSE;
foreach($deps as $dep){
if(isset($ids[$dep['dn']]) && in_array_ics($dep['dn'], $tdeps)){
+
+ if(empty($first)) {
+ $first = $dep['dn'];
+ }
+
$value = $ids[$dep['dn']];
if ($this->selectedBase == $dep['dn']){
+ $found = TRUE;
$options.= "<option selected='selected' value='".$dep['dn']."'>$value</option>";
} else {
$options.= "<option value='".$dep['dn']."'>$value</option>";
}
}
}
+ if(!$found){
+ $this->selectedBase = $first;
+ }
/* Get copy & paste icon */
$acl_all = $ui->has_complete_category_acls($this->selectedBase,"users") ;