[BUGFIX] Pagetree broken due to JavaScript exception
authorSteffen Ritter <info@rs-websystems.de>
Tue, 18 Oct 2011 11:44:51 +0000 (13:44 +0200)
committerTolleiv Nietsch <tolleiv.nietsch@typo3.org>
Fri, 20 Apr 2012 13:12:38 +0000 (15:12 +0200)
Sometimes (especially with empty DB Mount) the Pagetree is
broken and stops with a JavaScript Exception. This is due to
some problems with the state-restore logic, where the state
of not-yet-rendered nodes is applied.

Change-Id: Ie2a48a02341819c7816461b354cec68306bfa35a
Fixes: #28687
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/10626
Reviewed-by: Kay Strobach
Tested-by: Kay Strobach
Reviewed-by: Jo Hasenau
Tested-by: Jo Hasenau
Reviewed-by: Henrik Ziegenhain
Tested-by: Henrik Ziegenhain
Tested-by: Philipp Kitzberger
Reviewed-by: Stefan Rotsch
Tested-by: Stefan Rotsch
Reviewed-by: Stefan Neufeind
Tested-by: Stefan Neufeind
Reviewed-by: Tolleiv Nietsch
Tested-by: Tolleiv Nietsch
t3lib/js/extjs/components/pagetree/javascript/Ext.ux.state.TreePanel.js

index 469890f..83bdd96 100644 (file)
@@ -93,7 +93,7 @@ Ext.override(Ext.ux.state.TreePanel, {
                                                                fn: this.restoreState
                                                        }
                                                });
-                                               if (pageNode.expanded === false) {
+                                               if (pageNode.expanded === false && pageNode.rendered == true) {
                                                        pageNode.expand();
                                                }
                                        }