BUG 10260 Hidden Tag mal formado en propiedades de Triggers SOLVED
- The label tag are included for all fields types - Only include label tag when is necessary
This commit is contained in:
@@ -5457,7 +5457,7 @@ class xmlformTemplate extends Smarty
|
||||
$value = (isset( $form->values[$k] )) ? $form->values[$k] : null;
|
||||
$result[$k] = G::replaceDataField( $form->fields[$k]->label, $form->values );
|
||||
if ($form->type == 'xmlform') {
|
||||
if ($v->type != 'checkgroup' && $v->type != 'radiogroup') {
|
||||
if (in_array($v->type, array('text', 'currency', 'percentage', 'password', 'suggest', 'textarea', 'dropdown', 'yesno', 'listbox', 'checkbox', 'date', 'link', 'file'))) {
|
||||
$result[$k] = '<label for="form[' . $k . ']">' . $result[$k] . '</label>';
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user