From 45856aca5055bddec98328571629e23adce528db Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 29 Jul 2008 15:57:04 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSldapObject=20:=20Correction=20d'un=20bug?= =?UTF-8?q?=20dans=20l'interpr=C3=A9tation=20d'un=20rename?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSldapObject.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/includes/class/class.LSldapObject.php b/trunk/includes/class/class.LSldapObject.php index 06b44f09..1e6d0dfa 100644 --- a/trunk/includes/class/class.LSldapObject.php +++ b/trunk/includes/class/class.LSldapObject.php @@ -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);