[BUGFIX] Fix exception in IssueCommand view helper 87/40587/3
authorAndreas Fernandez <a.fernandez@scripting-base.de>
Wed, 24 Jun 2015 12:35:57 +0000 (14:35 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Thu, 25 Jun 2015 09:09:36 +0000 (11:09 +0200)
The URL used in the IssueCommand view helper is now built properly
to fix the exception mentioned in the ticket.

Resolves: #67653
Releases: master
Change-Id: I13dab0ad845d9091ff1cfc54e104803faa149f6e
Reviewed-on: http://review.typo3.org/40587
Reviewed-by: David Greiner <hallo@davidgreiner.de>
Tested-by: David Greiner <hallo@davidgreiner.de>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/beuser/Classes/ViewHelpers/IssueCommandViewHelper.php

index 0cb85cb..16424b4 100644 (file)
@@ -66,7 +66,11 @@ class IssueCommandViewHelper extends AbstractViewHelper implements CompilableInt
                        'uPT' => 1,
                        'redirect' => $arguments['redirectUrl'] ?: GeneralUtility::getIndpEnv('REQUEST_URI')
                ];
-               return htmlspecialchars(BackendUtility::getModuleUrl('tce_db', $urlParameters) . $arguments['parameters'] . BackendUtility::getUrlToken('tceAction'));
+               if (isset($arguments['parameters'])) {
+                       $parametersArray = GeneralUtility::explodeUrl2Array($arguments['parameters']);
+                       $urlParameters += $parametersArray;
+               }
+               return htmlspecialchars(BackendUtility::getModuleUrl('tce_db', $urlParameters) . BackendUtility::getUrlToken('tceAction'));
        }
 
 }