- LSldapObject : Correction d'un bug dans l'interprétation d'un rename

This commit is contained in:
Benjamin Renard 2008-07-29 15:57:04 +00:00
parent c17f9224fa
commit 45856aca50

View file

@ -513,7 +513,7 @@ class LSldapObject {
$submitData=array();
foreach($this -> attrs as $attr) {
if(($attr -> isUpdate())&&($attr -> isValidate())) {
if($attr -> name == $this -> config['rdn']) {
if(($attr -> name == $this -> config['rdn'])&&(!$this -> isNew())) {
debug('Rename');
if (!$this -> beforeRename()) {
$GLOBALS['LSerror'] -> addErrorCode(36);