From d5cb294d6551e09e3286c2af93cdbdc6a76a33ca Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Tue, 7 Oct 2008 12:53:43 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSformElement=5Fselect=5Fobject=20&&=20LSat?= =?UTF-8?q?tr=5Fhtml=5Fselect=5Fobject=20=09->=20Correction=20d'un=20bug?= =?UTF-8?q?=20:=20inversion=20du=20cas=20par=20d=C3=A9faut=20de=20la=20m?= =?UTF-8?q?=C3=A9thode=20=09=09=20LSattr=5Fhtml=5Fselect=5Fobject::refresh?= =?UTF-8?q?Form()=20(!$fromDNs)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSattr_html_select_object.php | 2 +- trunk/includes/class/class.LSformElement_select_object.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/trunk/includes/class/class.LSattr_html_select_object.php b/trunk/includes/class/class.LSattr_html_select_object.php index 3feff094..330bf58e 100644 --- a/trunk/includes/class/class.LSattr_html_select_object.php +++ b/trunk/includes/class/class.LSattr_html_select_object.php @@ -63,7 +63,7 @@ class LSattr_html_select_object extends LSattr_html{ * * @retval mixed La valeur formatée de l'attribut (array('DNs' => 'displayValue')) **/ - function refreshForm($data,$fromDNs=true) { + function refreshForm($data,$fromDNs=false) { return $this -> getFormValues($data,$fromDNs); } diff --git a/trunk/includes/class/class.LSformElement_select_object.php b/trunk/includes/class/class.LSformElement_select_object.php index bbc65fc1..cc0f725f 100644 --- a/trunk/includes/class/class.LSformElement_select_object.php +++ b/trunk/includes/class/class.LSformElement_select_object.php @@ -121,7 +121,7 @@ class LSformElement_select_object extends LSformElement { */ function setValueFromPostData($data) { LSformElement::setValueFromPostData($data); - $this -> values = $this -> attr_html -> refreshForm($this -> values,false); + $this -> values = $this -> attr_html -> refreshForm($this -> values,true); return true; }