Commit 2ac17145 authored by Carsten  Rose's avatar Carsten Rose
Browse files

#3426 / Dynamic Update: Inputs loose the new content and shows the old value

Fixed missing initialisation of $storeUse.
parent f906b671
......@@ -340,7 +340,7 @@ abstract class AbstractBuildForm {
* @param array $json
* @param string $modeCollectFe
* @param bool $htmlElementNameIdZero
* @param string $storeUse
* @param string $storeUseDefault
* @param string $mode FORM_LOAD | FORM_UPDATE | FORM_SAVE
* @return string
* @throws CodeException
......@@ -349,7 +349,7 @@ abstract class AbstractBuildForm {
*/
public function elements($recordId, $filter = FORM_ELEMENTS_NATIVE, $feIdContainer = 0, array &$json,
$modeCollectFe = FLAG_DYNAMIC_UPDATE, $htmlElementNameIdZero = false,
$storeUse = STORE_USE_DEFAULT, $mode = FORM_LOAD) {
$storeUseDefault = STORE_USE_DEFAULT, $mode = FORM_LOAD) {
$html = '';
$flagOutput = false;
......@@ -368,6 +368,7 @@ abstract class AbstractBuildForm {
// Iterate over all FormElements
foreach ($this->feSpecNative as $fe) {
$storeUse = $storeUseDefault;
if (($filter === FORM_ELEMENTS_NATIVE && $fe[FE_TYPE] === 'subrecord')
|| ($filter === FORM_ELEMENTS_SUBRECORD && $fe[FE_TYPE] !== 'subrecord')
......
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