[BUGFIX] Define 0 as a valid page id in Ext.ux.state.TreePanel 20/48820/2
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Sat, 2 Jul 2016 10:35:03 +0000 (12:35 +0200)
committerBenni Mack <benni@typo3.org>
Wed, 6 Jul 2016 10:16:51 +0000 (12:16 +0200)
commite9273be7e2e8fb64aa354311ef971410923e1ab2
treeba9193803802d82666f9cb252682309eca7fd2ed
parentfca66d886f7fd7437d552c20b396e10e7fd8250b
[BUGFIX] Define 0 as a valid page id in Ext.ux.state.TreePanel

According to the ExtJS TreePanel, -1 and 0 are invalid page ids. However,
having bookmarks linking to pid=0 causes problems, as 0 is detected as
invalid and the user gets redirected to the first available node.

This patch defines 0 as a valid page id.

Resolves: #76480
Releases: master, 7.6
Change-Id: Idbe6590d910078a971046e47f0d436af183d68ce
Reviewed-on: https://review.typo3.org/48820
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/backend/Resources/Public/JavaScript/extjs/components/pagetree/javascript/Ext.ux.state.TreePanel.js