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:
Julio Cesar Laura
2013-01-03 16:38:46 -04:00
parent 948a2cf637
commit d8cb67ff60

View File

@@ -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>';
}
}