[BUGFIX] Fix broken links to permission module 30/51330/3
authorFrank Naegler <frank.naegler@typo3.org>
Mon, 16 Jan 2017 17:37:05 +0000 (18:37 +0100)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Mon, 23 Jan 2017 19:44:56 +0000 (20:44 +0100)
This patch fix broken links in ClickMenu and DatabaseRecordList which
exists since the permissions module refactoring:
http://review.typo3.org/33402

Resolves: #79329
Related: #62339
Releases: master, 7.6
Change-Id: Iafe66352a7bac593e249ef09c07f1c9dc9b15359
Reviewed-on: https://review.typo3.org/51330
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Tested-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/backend/Classes/ClickMenu/ClickMenu.php
typo3/sysext/recordlist/Classes/RecordList/DatabaseRecordList.php

index ab581a6..440197e 100644 (file)
@@ -614,8 +614,8 @@ class ClickMenu
         ];
 
         if ($rec['perms_userid'] == $this->backendUser->user['uid'] || $this->backendUser->isAdmin()) {
-            $parameters['return_id'] = $uid;
-            $parameters['edit'] = '1';
+            $parameters['returnId'] = $uid;
+            $parameters['tx_beuser_system_beusertxpermission'] = ['action' => 'edit'];
         }
 
         $url = BackendUtility::getModuleUrl('system_BeuserTxPermission', $parameters);
index 3de19b9..c06a071 100644 (file)
@@ -1495,7 +1495,7 @@ class DatabaseRecordList extends AbstractDatabaseRecordList
             }
             // "Edit Perms" link:
             if ($table === 'pages' && $this->getBackendUserAuthentication()->check('modules', 'system_BeuserTxPermission') && ExtensionManagementUtility::isLoaded('beuser')) {
-                $href = BackendUtility::getModuleUrl('system_BeuserTxPermission') . '&id=' . $row['uid'] . '&return_id=' . $row['uid'] . '&edit=1';
+                $href = BackendUtility::getModuleUrl('system_BeuserTxPermission') . '&id=' . $row['uid'] . '&returnId=' . $row['uid'] . '&tx_beuser_system_beusertxpermission[action]=edit';
                 $permsAction = '<a class="btn btn-default" href="' . htmlspecialchars($href) . '" title="'
                     . htmlspecialchars($this->getLanguageService()->getLL('permissions')) . '">'
                     . $this->iconFactory->getIcon('status-status-locked', Icon::SIZE_SMALL)->render() . '</a>';