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:
Marco Antonio Nina
2014-05-20 12:19:09 -04:00
parent 665c6009b5
commit 47b83748f7

View File

@@ -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") {