generate_lang_file.php : remove check on html_type to handle units of valueWithUnit form element to permit to handle children classes

This commit is contained in:
Benjamin Renard 2017-02-02 10:37:56 +01:00
parent 3d2ab8127d
commit be52119506

View file

@ -196,7 +196,7 @@ if (loadDir(LS_OBJECTS_DIR) && loadDir(LS_LOCAL_DIR.LS_OBJECTS_DIR)) {
}
// LSattr_html_valueWithUnit
if ($attr['html_type']=='valueWithUnit' && is_array($attr['html_options']['units'])) {
if (is_array($attr['html_options']['units'])) {
foreach($attr['html_options']['units'] as $pname) {
add($pname);
}