Skip to content
Snippets Groups Projects
Commit b6b9b238 authored by Johannes Goslar's avatar Johannes Goslar Committed by Susanne Moog
Browse files

[BUGFIX] Prohibit editing of uneditable labels in pagetree

Resolves: #81445
Releases: master, 8.7
Change-Id: Ie88eb7ce2fdaf7429377062e86996847f7e9bfa9
Reviewed-on: https://review.typo3.org/53063


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: default avatarSusanne Moog <susanne.moog@typo3.org>
Tested-by: default avatarSusanne Moog <susanne.moog@typo3.org>
parent 58a6f66c
Branches
Tags
No related merge requests found
......@@ -201,7 +201,7 @@ TYPO3.Components.PageTree.Tree = Ext.extend(Ext.tree.TreePanel, {
// This is a workaround to prevent TreeEditor being triggered, which also requires a patch within TreeEditor
node.attributes.editable = false;
} else {
node.attributes.editable = true;
node.attributes.editable = node.attributes.editableDefault;
if (!this.clicksRegistered && this.getSelectionModel().isSelected(node)) {
node.fireEvent('click', node, event);
......@@ -316,6 +316,10 @@ TYPO3.Components.PageTree.Tree = Ext.extend(Ext.tree.TreePanel, {
attr.id = 'siteRootNode';
}
// nodes editable state needs to be forced to false at times
// so we need to store the original value to revert back to
attr.editableDefault = attr.editable;
return Ext.tree.TreeLoader.prototype.createNode.call(this, attr);
},
......
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