From 44673c7dc1c01a50c42fdbfe420a9de517177ac7 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 27 Oct 2008 16:05:26 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSattribute=20:=20Correction=20d'un=20bug?= =?UTF-8?q?=20dans=20la=20m=C3=A9thode=20resfreshForm()?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSattribute.php | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/trunk/includes/class/class.LSattribute.php b/trunk/includes/class/class.LSattribute.php index 6254ba98..39920dcc 100644 --- a/trunk/includes/class/class.LSattribute.php +++ b/trunk/includes/class/class.LSattribute.php @@ -323,8 +323,13 @@ class LSattribute { function refreshForm(&$form,$idForm) { if(isset($this -> config['form'][$idForm])) { $form_element = $form -> getElement($this -> name); - $values = $this -> html -> refreshForm($this -> getFormVal()); - return $form_element -> setValue($values); + if ($form_element) { + $values = $this -> html -> refreshForm($this -> getFormVal()); + return $form_element -> setValue($values); + } + else { + LSdebug('LSformElement "'.$this -> name.'" n\'existe pas'); + } } return true; }