summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: ffad863)
raw | patch | inline | side by side (parent: ffad863)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Mar 2007 07:25:02 +0000 (07:25 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 27 Mar 2007 07:25:02 +0000 (07:25 +0000) |
The check was always false, cause $this->saved_attributes['base'] is never set.
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5894 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@5894 594d385d-05f5-0310-b6e9-bd551577e9d8
plugins/personal/generic/class_user.inc | patch | blob | history |
index cf43e10daccf94ffb76b85101496bac2a8138c2b..9749942d5f3942eee64c486f76226f84e081a7d2 100644 (file)
/* Plugin specific values */
var $base= "";
+ var $orig_base= "";
var $cn= "";
var $new_dn= "";
var $personalTitle= "";
if (isset ($this->attrs['gender'])){
$this->gender= strtoupper($this->attrs['gender'][0]);
}
+
+ $this->orig_base = $this->base;
}
$this->new_dn= 'uid='.$this->uid.','.get_people_ou().$this->base;
} else {
/* Don't touch dn, if cn hasn't changed */
- if (isset($this->saved_attributes['cn']) && $this->saved_attributes['cn'] == $this->cn
- && (isset($this->saved_attributes['base']) && $this->saved_attributes['base'] == $this->base )
- ){
+ if (isset($this->saved_attributes['cn']) && $this->saved_attributes['cn'] == $this->cn &&
+ $this->orig_base == $this->base){
$this->new_dn= $this->dn;
} else {
$this->new_dn= $this->create_unique_dn('cn', get_people_ou().$this->base);