From: hickert Date: Wed, 24 Feb 2010 13:48:34 +0000 (+0000) Subject: 'Enabled multiple edit for the manager attribute X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=e3838ef76b385e88e9cc27f05b44edcc310516a8;p=gosa.git 'Enabled multiple edit for the manager attribute git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15695 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/plugins/personal/generic/class_user.inc b/gosa-core/plugins/personal/generic/class_user.inc index b3ac780bf..59d0eab4c 100644 --- a/gosa-core/plugins/personal/generic/class_user.inc +++ b/gosa-core/plugins/personal/generic/class_user.inc @@ -1744,6 +1744,9 @@ class user extends plugin function multiple_save_object() { + + if(!isset($_POST['user_mulitple_edit'])) return; + plugin::multiple_save_object(); /* Get pw_storage mode */ @@ -1842,6 +1845,19 @@ class user extends plugin } } + // Detect the managers name + $this->manager_name = ""; + $ldap = $this->config->get_ldap_link(); + if(!empty($this->manager)){ + $ldap->cat($this->manager, array('cn')); + if($ldap->count()){ + $attrs = $ldap->fetch(); + $this->manager_name = $attrs['cn'][0]; + }else{ + $this->manager_name = "("._("Unknown")."!): ".$this->manager; + } + } + // Detect login restriction not used in all user objects. $this->gosaLoginRestriction_some = array(); if(isset($all['gosaLoginRestriction'])){ diff --git a/gosa-core/plugins/personal/generic/generic.tpl b/gosa-core/plugins/personal/generic/generic.tpl index 41aeef2f1..517218efb 100644 --- a/gosa-core/plugins/personal/generic/generic.tpl +++ b/gosa-core/plugins/personal/generic/generic.tpl @@ -356,6 +356,24 @@ {/if} + {else} + + + + + + {if $use_manager} + + {if $manager!=""} + + + {/if} + {/if} + + + {/if}