[BUGFIX] Use correct identifier for page tree icons binding 74/56174/2
authorTymoteusz Motylewski <t.motylewski@gmail.com>
Thu, 15 Mar 2018 15:57:48 +0000 (16:57 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 15 Mar 2018 16:31:42 +0000 (17:31 +0100)
The `stateIdentifier` is correct for nodes, but for icons `identifier`
 should be used.

Resolves: #84300
Releases: master
Change-Id: If014a19e4472d9737ee09c75970fd78e2615f150
Reviewed-on: https://review.typo3.org/56174
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Resources/Public/JavaScript/SvgTree.js

index bdeb0b6..8510921 100644 (file)
@@ -680,7 +680,7 @@ define(
           var icons = this.iconsContainer
             .selectAll('.icon-def')
             .data(iconsArray, function(i) {
-              return i.stateIdentifier;
+              return i.identifier;
             });
 
           icons