Skip to content

Commit

Permalink
[BUGFIX] Re-init FormEngine always after memorizing record
Browse files Browse the repository at this point in the history
TCA fields using the 'placeholder' functionality are not
initialized in inline 'localize/synchronize' scenarios.

tx_styleguide_inline_1n -> inline_1 -> input_3 has been
added to show this.

Solution is to call the required FormEngine "re-init" in
JavaScript at a different point - not only when new inline
children are added, but also when synchronizing with
default language.

Resolves: #93792
Releases: master, 10.4
Change-Id: Ib10826ee9bc4c305436c2474f2bb20b2d367d426
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/68530
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
  • Loading branch information
andreaskienast authored and lolli42 committed Mar 22, 2021
1 parent ea2087e commit dac8915
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -407,10 +407,6 @@ class InlineControlContainer {
typeof afterUid !== 'undefined' ? afterUid : null,
typeof response.compilerInput.childChildUid !== 'undefined' ? response.compilerInput.childChildUid : null,
);

FormEngine.reinitialize();
FormEngineValidation.initializeInputFields();
FormEngineValidation.validate(this.container);
}
});
}
Expand Down Expand Up @@ -677,6 +673,10 @@ class InlineControlContainer {
this.toggleContainerControls(false);
}

FormEngine.reinitialize();
FormEngineValidation.initializeInputFields();
FormEngineValidation.validate(this.container);

TBE_EDITOR.fieldChanged_fName((<HTMLInputElement>formField).name, formField);
}

Expand Down
Loading

0 comments on commit dac8915

Please sign in to comment.