[BUGFIX] Re-allow t3d export from ID 0 58/47358/2
authorBenni Mack <benni@typo3.org>
Mon, 21 Mar 2016 19:24:01 +0000 (20:24 +0100)
committerBenni Mack <benni@typo3.org>
Wed, 30 Mar 2016 17:28:27 +0000 (19:28 +0200)
During the refactoring of the impexp module a check for the
page ID was introduced to show the pagetree and additional
fields only if a page ID was given, which disallows to export
records on ID 0.

Additionally, a minor JavaScript bug which popped up then
is fixed as well.

Resolves: #75183
Releases: master, 7.6
Change-Id: I0adbd933ecc5da938b511d531178ac707cb035c3
Reviewed-on: https://review.typo3.org/47358
Reviewed-by: Bernhard Kraft <kraftb@think-open.at>
Tested-by: Bernhard Kraft <kraftb@think-open.at>
Reviewed-by: Oliver Hader <oliver.hader@typo3.org>
Tested-by: Oliver Hader <oliver.hader@typo3.org>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/impexp/Resources/Private/Partials/Export/Configuration.html

index 6ddebd5..a86ee00 100644 (file)
@@ -1,53 +1,51 @@
 <table border="0" cellpadding="1" cellspacing="1">
-       <f:if condition="{inData.pagetree.id}">
-               <tr class="tableheader bgColor5">
-                       <td colspan="2">
-                               <f:translate key="makeconfig_exportPagetreeConfiguration" />
-                               <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeCfg" />
-                       </td>
-               </tr>
-               <tr class="bgColor4">
-                       <td><strong><f:translate key="makeconfig_pageId" /></strong></td>
-                       <td>{inData.pagetree.id}<input type="hidden" value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" /></td>
-               </tr>
-               <tr class="bgColor4">
-                       <td>
-                               <strong><f:translate key="makeconfig_tree" /></strong>
-                               <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeDisplay" />
-                       </td>
-                       <td>
-                               <f:if condition="{treeHTML}">
-                                       <f:then><f:format.raw>{treeHTML}</f:format.raw></f:then>
-                                       <f:else><f:translate key="makeconfig_noTreeExportedOnly" /></f:else>
-                               </f:if>
-                       </td>
-               </tr>
-               <tr class="bgColor4">
-                       <td>
-                               <strong><f:translate key="makeconfig_levels" /></strong>
-                               <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeMode" />
-                       </td>
-                       <td>
-                               <f:form.select name="tx_impexp[pagetree][levels]" options="{levelSelectOptions}" value="{inData.pagetree.levels}" />
-                       </td>
-               </tr>
-               <tr class="bgColor4">
-                       <td>
-                               <strong><f:translate key="makeconfig_includeTables" /></strong>
-                               <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeRecordLimit" />
-                       </td>
-                       <td>
-                               <f:form.select name="tx_impexp[pagetree][tables]" options="{tableSelectOptions}"
-                                                                                        multiple="multiple" value="{inData.pagetree.tables}"
-                                                                                        size="{f:if(condition: '{tableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
-                               <br/>
-                               <f:translate key="makeconfig_maxNumberOfRecords" />
-                               <br/>
-                               <f:form.textfield name="tx_impexp[pagetree][maxNumber]" value="{inData.pagetree.maxNumber}" />
-                               <br/>
-                       </td>
-               </tr>
-       </f:if>
+       <tr class="tableheader bgColor5">
+               <td colspan="2">
+                       <f:translate key="makeconfig_exportPagetreeConfiguration" />
+                       <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeCfg" />
+               </td>
+       </tr>
+       <tr class="bgColor4">
+               <td><strong><f:translate key="makeconfig_pageId" /></strong></td>
+               <td>{inData.pagetree.id}<input type="hidden" value="{inData.pagetree.id}" name="tx_impexp[pagetree][id]" /></td>
+       </tr>
+       <tr class="bgColor4">
+               <td>
+                       <strong><f:translate key="makeconfig_tree" /></strong>
+                       <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeDisplay" />
+               </td>
+               <td>
+                       <f:if condition="{treeHTML}">
+                               <f:then><f:format.raw>{treeHTML}</f:format.raw></f:then>
+                               <f:else><f:translate key="makeconfig_noTreeExportedOnly" /></f:else>
+                       </f:if>
+               </td>
+       </tr>
+       <tr class="bgColor4">
+               <td>
+                       <strong><f:translate key="makeconfig_levels" /></strong>
+                       <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeMode" />
+               </td>
+               <td>
+                       <f:form.select name="tx_impexp[pagetree][levels]" options="{levelSelectOptions}" value="{inData.pagetree.levels}" />
+               </td>
+       </tr>
+       <tr class="bgColor4">
+               <td>
+                       <strong><f:translate key="makeconfig_includeTables" /></strong>
+                       <f:be.buttons.csh table="xMOD_tx_impexp" field="pageTreeRecordLimit" />
+               </td>
+               <td>
+                       <f:form.select name="tx_impexp[pagetree][tables]" options="{tableSelectOptions}"
+                                                                                multiple="multiple" value="{inData.pagetree.tables}"
+                                                                                size="{f:if(condition: '{tableSelectOptions -> f:count()} > 9', then: '10', else: '5')}" />
+                       <br/>
+                       <f:translate key="makeconfig_maxNumberOfRecords" />
+                       <br/>
+                       <f:form.textfield name="tx_impexp[pagetree][maxNumber]" value="{inData.pagetree.maxNumber}" />
+                       <br/>
+               </td>
+       </tr>
        <f:if condition="{records}">
                <tr class="tableheader bgColor5">
                        <td colspan="2">