From aa425ab8f9510fc93050fb54f5372bc1fa08caca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20L=C3=BCcking?= Date: Wed, 26 Sep 2018 16:03:27 +0200 Subject: [PATCH 1/2] Check for empty value --- system/modules/multicolumnwizard/MultiColumnWizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/modules/multicolumnwizard/MultiColumnWizard.php b/system/modules/multicolumnwizard/MultiColumnWizard.php index f0d4df2..49c6e22 100644 --- a/system/modules/multicolumnwizard/MultiColumnWizard.php +++ b/system/modules/multicolumnwizard/MultiColumnWizard.php @@ -945,7 +945,7 @@ protected function initializeWidget(&$arrField, $intRow, $strKey, $varValue) $arrField['activeRow'] = $intRow; $arrField['name'] = $this->strName . '[' . $intRow . '][' . $strKey . ']'; $arrField['id'] = $this->strId . '_row' . $intRow . '_' . $strKey; - $arrField['value'] = ($varValue !== '') ? $varValue : $arrField['default']; + $arrField['value'] = empty($varValue) ? $arrField['default'] : $varValue; $arrField['eval']['tableless'] = true; $arrData = $this->handleDcGeneral($arrField, $strKey); From c1de57a33521d3856ec429c87b23c780961e0b59 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20L=C3=BCcking?= Date: Mon, 1 Oct 2018 16:01:11 +0200 Subject: [PATCH 2/2] Check for null or empty string --- system/modules/multicolumnwizard/MultiColumnWizard.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/system/modules/multicolumnwizard/MultiColumnWizard.php b/system/modules/multicolumnwizard/MultiColumnWizard.php index 49c6e22..61c5627 100644 --- a/system/modules/multicolumnwizard/MultiColumnWizard.php +++ b/system/modules/multicolumnwizard/MultiColumnWizard.php @@ -945,7 +945,7 @@ protected function initializeWidget(&$arrField, $intRow, $strKey, $varValue) $arrField['activeRow'] = $intRow; $arrField['name'] = $this->strName . '[' . $intRow . '][' . $strKey . ']'; $arrField['id'] = $this->strId . '_row' . $intRow . '_' . $strKey; - $arrField['value'] = empty($varValue) ? $arrField['default'] : $varValue; + $arrField['value'] = $varValue === null || $varValue === '' ? $arrField['default'] : $varValue; $arrField['eval']['tableless'] = true; $arrData = $this->handleDcGeneral($arrField, $strKey);