Commit 3db4e3e9 authored by Andreas Fernandez's avatar Andreas Fernandez Committed by Christian Kuhn
Browse files

[BUGFIX] Re-init FormEngine always after memorizing record

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/+/68527


Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Oliver Bartsch's avatarOliver Bartsch <bo@cedev.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent e0d1cfd5
......@@ -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);
}
});
}
......@@ -677,6 +673,10 @@ class InlineControlContainer {
this.toggleContainerControls(false);
}
FormEngine.reinitialize();
FormEngineValidation.initializeInputFields();
FormEngineValidation.validate(this.container);
TBE_EDITOR.fieldChanged(this.container.dataset.localTable, this.container.dataset.uid, this.container.dataset.localField, formField);
}
......
Supports Markdown
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