From 4942756f2835c5e4779d7b8c2a40598ad5d51f59 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Mon, 27 Oct 2008 16:10:10 +0000 Subject: [PATCH] =?UTF-8?q?-=20LSattribute=20:=20Correction=20de=20la=20m?= =?UTF-8?q?=C3=A9thode=20refreshForm()=20pour=20ne=20pas=20executer=20des?= =?UTF-8?q?=20traitements=20=20=20inutiles=20(attribut=20dans=20le=20formu?= =?UTF-8?q?laire=20mais=20pas=20acc=C3=A8ssible=20pour=20l'utilisateur).?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trunk/includes/class/class.LSattribute.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trunk/includes/class/class.LSattribute.php b/trunk/includes/class/class.LSattribute.php index 39920dcc..49136043 100644 --- a/trunk/includes/class/class.LSattribute.php +++ b/trunk/includes/class/class.LSattribute.php @@ -321,7 +321,7 @@ class LSattribute { * @retval boolean true si la valeur a été rafraichie ou que ce n'est pas nécessaire, false sinon */ function refreshForm(&$form,$idForm) { - if(isset($this -> config['form'][$idForm])) { + if(isset($this -> config['form'][$idForm])&&($this -> myRights()!='n')) { $form_element = $form -> getElement($this -> name); if ($form_element) { $values = $this -> html -> refreshForm($this -> getFormVal());