diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index 1cfe9913e2bbc251bdc1f211c9516a7320991df4..52df6e02369d44cc8bd4e8795c04e192b975ed0f 100644 (file)
}
$gufilter= get_global('gufilter');
+ /* Bases / Departments */
+
+ if(isset($_SESSION['groupfilter']['depselect'])){
+ $this->base = $_SESSION['groupfilter']['depselect'];
+ }else{
+ if ($this->dn == "new"){
+ $ui= get_userinfo();
+ $this->base= dn2base($ui->dn);
+ } else {
+ $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
+ }
+ }
+
+
/* This is always an account */
$this->is_account= TRUE;
$this->reload();
{
/* Do we represent a valid group? */
if (!$this->is_account && $this->parent == NULL){
- $display= "<img src=\"images/stop.png\" align=\"middle\"> <b>".
+ $display= "<img alt=\"\" src=\"images/stop.png\" align=\"middle\"> <b>".
_("This 'dn' is no group.")."</b>";
return ($display);
}
/* Bases / Departments */
if (isset($_POST['base'])){
$this->base= $_POST['base'];
- } else {
- if ($this->dn == "new"){
- $ui= get_userinfo();
- $this->base= dn2base($ui->dn);
- } else {
- $this->base= preg_replace ("/^[^,]+,[^,]+,/", "", $this->dn);
- }
}
$smarty->assign("bases", $this->config->idepartments);
natcasesort ($this->users);
reset ($this->users);
- $ldap->cd ($this->config->current['BASE']);
+ $ldap->cd ($gufilter['dselect']);
$ldap->search ("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(!(uid=*$)))");
$this->allusers= array();
while ($attrs= $ldap->fetch()){