- 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,8 +323,13 @@ 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);
$values = $this -> html -> refreshForm($this -> getFormVal()); if ($form_element) {
return $form_element -> setValue($values); $values = $this -> html -> refreshForm($this -> getFormVal());
return $form_element -> setValue($values);
}
else {
LSdebug('LSformElement "'.$this -> name.'" n\'existe pas');
}
} }
return true; return true;
} }