diff --git a/plugins/admin/groups/class_groupGeneric.inc b/plugins/admin/groups/class_groupGeneric.inc
index 0c3310eb807e83fa4ddc954ecd91717fc43573da..eb0345a3993a4fcc3d4b1c1f5d2dfeb86d8132c1 100644 (file)
foreach($_POST as $name => $value){
if(preg_match("/^chooseBase/",$name) && $once){
$once = false;
- $this->dialog = new baseSelectDialog($this->config);
+ $this->dialog = new baseSelectDialog($this->config,$this);
$this->dialog->setCurrentBase($this->base);
}
}
}
}
if(!empty($filter)){
+ $ldap->cd($this->config->current['BASE']);
$ldap->search("(&(objectClass=gosaAccount)(!(objectClass=gosaUserTemplate))(|".$filter."))",array("uid","sn","givenName"));
while($attrs = $ldap->fetch()){
$this->members[$attrs['uid'][0]] = $this->createResultName($attrs);
$ldap= $this->config->get_ldap_link();
$ldap->rmdir($this->dn);
- show_ldap_error($ldap->get_error(), _("Removing group failed"));
+ show_ldap_error($ldap->get_error(), sprintf(_("Removing of groups/generic with dn '%s' failed."),$this->dn));
/* Delete references to object groups */
$ldap->cd ($this->config->current['BASE']);
$ldap->$mode($this->attrs);
$ret= 0;
- if (show_ldap_error($ldap->get_error(), _("Saving group failed"))){
+ if ( show_ldap_error($ldap->get_error(), sprintf(_("Removing of groups/generic with dn '%s' failed."),$this->dn))){
$ret= 1;
}