diff --git a/api/src/Etemplate/Widget/Select.php b/api/src/Etemplate/Widget/Select.php index 77d5028879..4400db7675 100644 --- a/api/src/Etemplate/Widget/Select.php +++ b/api/src/Etemplate/Widget/Select.php @@ -864,6 +864,10 @@ class Select extends Etemplate\Widget public static function ajax_get_options($type, $attributes, $value = null) { $no_lang = false; + if(is_array($attributes)) + { + $attributes = implode(',',$attributes); + } $options = self::typeOptions($type, $attributes,$no_lang,false,$value); self::fix_encoded_options($options,true); $response = Api\Json\Response::get();