BUG-15001 Dynaform - Fields Handler - Default Value of Zero... SOLVED
- Validation function empty takes '0 ' as empty - add validation in file fields_Save.php
This commit is contained in:
@@ -235,7 +235,7 @@ unset($FieldAttributes['SAVELABEL']);
|
||||
foreach ($FieldAttributes as $key => $value) {
|
||||
switch (gettype($value)) {
|
||||
case 'string':
|
||||
if (!empty($value)) {
|
||||
if (!empty($value) || $value !== '') {
|
||||
$FieldAttrib[strtolower($key)] = $value;
|
||||
} else {
|
||||
if ($_POST["form"]["TYPE"] == "link" && $key == "TARGET_SEL") {
|
||||
|
||||
Reference in New Issue
Block a user