- LSattribute : Correction d'un bug dans la méthode resfreshForm()

This commit is contained in:
Benjamin Renard 2008-10-27 16:05:26 +00:00
parent 860f62e09c
commit 44673c7dc1

View file

@ -323,9 +323,14 @@ class LSattribute {
function refreshForm(&$form,$idForm) { function refreshForm(&$form,$idForm) {
if(isset($this -> config['form'][$idForm])) { if(isset($this -> config['form'][$idForm])) {
$form_element = $form -> getElement($this -> name); $form_element = $form -> getElement($this -> name);
if ($form_element) {
$values = $this -> html -> refreshForm($this -> getFormVal()); $values = $this -> html -> refreshForm($this -> getFormVal());
return $form_element -> setValue($values); return $form_element -> setValue($values);
} }
else {
LSdebug('LSformElement "'.$this -> name.'" n\'existe pas');
}
}
return true; return true;
} }