X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=plugins%2Fadmin%2Fusers%2Ftabs_user.inc;h=5ac4fb7b3a1321b791928caf86904e9f3a2b59a9;hb=584c4ac82a374aa05189053b06eff066da1e2881;hp=f19f5b856bdadb550657760e9bdbcd172cf186d2;hpb=930ba8251fc0c3b776d1dce8088943f888e863e3;p=gosa.git diff --git a/plugins/admin/users/tabs_user.inc b/plugins/admin/users/tabs_user.inc index f19f5b856..5ac4fb7b3 100644 --- a/plugins/admin/users/tabs_user.inc +++ b/plugins/admin/users/tabs_user.inc @@ -27,6 +27,13 @@ class usertabs extends tabs $this->by_object[$name]= $obj; } + /* Copy mail if needed */ + if ($name == "gofaxAccount"){ + if (isset($this->by_object['mailAccount']) && $this->by_object['mailAccount']->is_account){ + $obj->mail= $this->by_object['mailAccount']->mail; + } + } + /* Update parent in base object */ $this->by_object['user']->parent= &$this; } @@ -90,7 +97,7 @@ class usertabs extends tabs * If you changed one of the "Name" / "Givenname" attributes to lower or upper case, like "test" to "Test", (in DNMODE=cn) * the old_dn and new dn were different. cn=test ... cn=Test ... * The following code decided to move the entry from old_dn to new_dn. (Because they differ) - * But the ldap functions are not case sensitive and so the function plugin::move() quits with + * But the ldap attribute cn is not case sensitive and the function plugin::move() quits with * an error, because source and destination dn are both the same (for ldap, but not for php). * This fix allow you to change the givenname or name attributes. */ @@ -112,7 +119,6 @@ class usertabs extends tabs $this->dn= $new_dn; } } - print_a($this); return tabs::save(); } @@ -123,6 +129,16 @@ class usertabs extends tabs $this->by_object[$key]->is_template= TRUE; } } + + function saveCopyDialog() + { + tabs::saveCopyDialog(); + $baseobject= $this->by_object['user']; + $uid = $baseobject->uid; + foreach($this->by_object as $name => $obj){ + $this->by_object[$name]->uid = $uid; + } + } }