Skip to content

Commit

Permalink
[BUGFIX] Avoid updating element header in form editor inspector
Browse files Browse the repository at this point in the history
When changing values in the form editor inspector, their header
content is updated and overridden - as a result the corresponding
type icon in the header suddenly disappears.

Resolves: #97841
Releases: main, 11.5, 10.4
Change-Id: I18bbd668a16a5b350a14cfa565fb5b96ab205fe8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75012
Tested-by: waldhacker <hello@waldhacker.dev>
Tested-by: core-ci <typo3@b13.com>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: waldhacker <hello@waldhacker.dev>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
  • Loading branch information
waldhacker1 authored and ohader committed Jul 2, 2022
1 parent 07447e0 commit 0b8932e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
Expand Up @@ -2574,6 +2574,7 @@ define(['jquery',
*
* @param string content
* @return void
* @deprecated not used anymore, will be removed in TYPO3 v12.0
*/
function setFormElementHeaderEditorContent(content) {
if (getFormEditorApp().getUtility().isUndefinedOrNull(content)) {
Expand Down
Expand Up @@ -823,11 +823,9 @@ define(['jquery',
if ('renderables' !== args[0]) {
if (!getFormEditorApp().isRootFormElementSelected() && 'label' === args[0]) {
getViewModel().getStructure().setTreeNodeTitle();
getViewModel().setInspectorFormElementHeaderEditorContent();
} else if (!getFormEditorApp().getUtility().isUndefinedOrNull(args[3]) && getRootFormElement().get('__identifierPath') === args[3]) {
getViewModel().setStructureRootElementTitle();
getViewModel().setStageHeadline();
getViewModel().setInspectorFormElementHeaderEditorContent();
}

if (getViewModel().getPreviewMode()) {
Expand Down
Expand Up @@ -882,6 +882,7 @@ define(['jquery',
*
* @param string content
* @return void
* @deprecated not used anymore, will be removed in TYPO3 v12.0
*/
function setInspectorFormElementHeaderEditorContent(content) {
getInspector().setFormElementHeaderEditorContent(content);
Expand Down

0 comments on commit 0b8932e

Please sign in to comment.