LSattr_html_select_object : fix bug witch disable default_value

This commit is contained in:
Benjamin Renard 2009-12-31 17:02:07 +01:00
parent 616197c43f
commit 84554e7c59

View file

@ -44,6 +44,9 @@ class LSattr_html_select_object extends LSattr_html{
return;
}
if ($data) {
if (!is_array($data)) {
$data=array($data);
}
$values=$this -> getFormValues($data);
if ($values) {
$element -> setValue($values);