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:
@@ -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']);
|
||||
|
||||
Reference in New Issue
Block a user