[BUGFIX] Import/Export module uses page id as tree depth
authorOliver Hader <oliver@typo3.org>
Wed, 2 Mar 2011 18:39:26 +0000 (19:39 +0100)
committerOliver Hader <oliver@typo3.org>
Wed, 2 Mar 2011 19:18:54 +0000 (20:18 +0100)
The parameter tx_impexp[pagetree][levels] must be set to zero in this case.

Change-Id: I3828cac7d38117e5a3045a1ac983ce538b629f86
Resolves: #M17814
Reviewed-on: http://review.typo3.org/988
Reviewed-by: Stefan Galinski <stefan.galinski@gmail.com>
Tested-by: Stefan Galinski <stefan.galinski@gmail.com>
Reviewed-by: Oliver Hader <oliver@typo3.org>
t3lib/js/extjs/components/pagetree/javascript/actions.js

index 67aab89..b3b51f3 100644 (file)
@@ -381,7 +381,7 @@ TYPO3.Components.PageTree.Actions = {
                TYPO3.Backend.ContentContainer.setUrl(
                        'sysext/impexp/app/index.php?tx_impexp[action]=export&' +
                                'id=0&tx_impexp[pagetree][id]=' + node.attributes.nodeData.id +
-                               '&tx_impexp[pagetree][levels]=' + node.attributes.nodeData.id +
+                               '&tx_impexp[pagetree][levels]=0' +
                                '&tx_impexp[pagetree][tables][]=_ALL'
                );
        },