From ae79fa4f5149a03080f251d57f1bca31d0adcc24 Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Thu, 28 Dec 2017 11:32:31 +0100 Subject: [PATCH] wizard: adhere to defaults in the xml Instead of using the config values even if set... --- src/www/wizard.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/www/wizard.php b/src/www/wizard.php index b15684fa7..a01e0099d 100644 --- a/src/www/wizard.php +++ b/src/www/wizard.php @@ -430,7 +430,7 @@ function showchange() { $name = preg_replace("/\s+/", "", $name); $name = strtolower($name); - if($field['bindstofield'] <> "") { + if (!empty($field['bindstofield']) && !isset($field['value'])) { $arraynum = ""; $field_conv = ""; $field_split = explode("->", $field['bindstofield']); @@ -447,8 +447,9 @@ function showchange() { eval($toeval); } - if(!$field['combinefieldsend']) + if (!$field['combinefieldsend']) { echo ""; + } switch ($field['type']) { case "input":