BUG 10200 No se guardan los valores en el campo dropdown... SOLVED

- Not save the data in dropdown when the first row is empty.
- was add validation.
This commit is contained in:
Marco Antonio Nina
2012-12-19 09:21:18 -04:00
parent 89dc42ee7c
commit e56132beab

View File

@@ -123,7 +123,7 @@ if (file_exists(PATH_XMLFORM . 'dynaforms/fields/' . $type . '.xml')) {
}
}
if ($type === 'dropdown' || $type === 'listbox') {
if (isset($_POST['form']['PME_OPTIONS'][1])) {
if (isset($_POST['form']['PME_OPTIONS'][1]) && count($_POST['form']['PME_OPTIONS']) == 1) {
if ($_POST['form']['PME_OPTIONS']['1']['NAME'] === "" &&
$_POST['form']['PME_OPTIONS']['1']['LABEL'] === "") {
unset($_POST['form']['PME_OPTIONS']);