From 2995005d53a83d218c50493259221165558bd3df Mon Sep 17 00:00:00 2001 From: Carsten Rose <carsten.rose@math.uzh.ch> Date: Sat, 25 Mar 2017 17:59:19 +0100 Subject: [PATCH] #3426 | Dynamic Update: Inputs loose the new content and shows the old value abstractBuildForm.php: through fix #2064 the FE.checkType has not been used anymore. This is fixed now. --- extension/qfq/qfq/AbstractBuildForm.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extension/qfq/qfq/AbstractBuildForm.php b/extension/qfq/qfq/AbstractBuildForm.php index 4ba199787..cd20b556e 100644 --- a/extension/qfq/qfq/AbstractBuildForm.php +++ b/extension/qfq/qfq/AbstractBuildForm.php @@ -425,10 +425,13 @@ abstract class AbstractBuildForm { // } if ($value === '') { - // Only take the default, if the FE is a real tablecolumn. See #2064 - if ($this->store->getVar($formElement[FE_NAME], STORE_TABLE_COLUMN_TYPES) !== false) { - $value = $this->store->getVar($name, $storeUse, $formElement['checkType']); + // #2064 / Only take the default, if the FE is a real tablecolumn. + // #3426 / Dynamic Update: Inputs loose the new content and shows the old value. + if ($storeUse == STORE_USE_DEFAULT && $this->store->getVar($formElement[FE_NAME], STORE_TABLE_COLUMN_TYPES) === false) { + $storeUse = str_replace(STORE_TABLE_DEFAULT, '', $storeUse); // Remove STORE_DEFAULT } + $value = $this->store->getVar($name, $storeUse, $formElement['checkType']); + } // Typically: $htmlElementNameIdZero = true -- GitLab