Commit 2995005d authored by Carsten  Rose's avatar Carsten Rose
Browse files

#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.
parent e40e86e8
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment