From 44a189abae19b235f164953cecbdad0dbaf52f9f Mon Sep 17 00:00:00 2001 From: Andreas Fernandez <a.fernandez@scripting-base.de> Date: Mon, 5 Sep 2022 11:22:53 +0200 Subject: [PATCH] [BUGFIX] Fix condition in EXT:impexp to check for export view The check for `inData.action` didn't work anymore for a long time as `action` is not set in the controllers anymore. To check if we're in the export view, the existing check for `import.mode` is re-used instead. Resolves: #98258 Releases: main, 11.5 Change-Id: I7ce3e572d2fe90ded1f6d100461c616b0b768e5f Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/75603 Tested-by: Susanne Moog <look@susi.dev> Tested-by: core-ci <typo3@b13.com> Tested-by: Benni Mack <benni@typo3.org> Tested-by: Andreas Fernandez <a.fernandez@scripting-base.de> Reviewed-by: Susanne Moog <look@susi.dev> Reviewed-by: Benni Mack <benni@typo3.org> Reviewed-by: Andreas Fernandez <a.fernandez@scripting-base.de> --- .../Resources/Private/Partials/Preview.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/typo3/sysext/impexp/Resources/Private/Partials/Preview.html b/typo3/sysext/impexp/Resources/Private/Partials/Preview.html index 3fb347fae62a..622370550dca 100644 --- a/typo3/sysext/impexp/Resources/Private/Partials/Preview.html +++ b/typo3/sysext/impexp/Resources/Private/Partials/Preview.html @@ -19,20 +19,20 @@ </h2> </f:then> <f:else> - <f:if condition="{inData.action} == 'export'"> - <h2> - <f:translate key="LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:execlistqu_structureToBeExported"/> - </h2> - </f:if> + <h2> + <f:translate key="LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:execlistqu_structureToBeExported"/> + </h2> </f:else> </f:if> <div> <f:if condition="{inData.excludeDisabled}"> <f:else> - <f:if condition="{inData.action} == 'export'"> - <f:form.button class="btn btn-default t3js-impexp-toggledisabled" type="button"> - <f:translate key="LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:impexpcore_toggle_all_disabled_records"/> - </f:form.button> + <f:if condition="{import.mode} == 'import'"> + <f:else> + <f:form.button class="btn btn-default t3js-impexp-toggledisabled" type="button"> + <f:translate key="LLL:EXT:impexp/Resources/Private/Language/locallang.xlf:impexpcore_toggle_all_disabled_records"/> + </f:form.button> + </f:else> </f:if> </f:else> </f:if> -- GitLab