[BUGFIX] Make page title clickable in access module 55/44855/3
authorGeorg Ringer <georg.ringer@gmail.com>
Sat, 21 Nov 2015 12:57:18 +0000 (13:57 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sat, 21 Nov 2015 15:11:12 +0000 (16:11 +0100)
Make the link working on the page title in the tree of the
access module.

Change-Id: I76099837314300bef4e8e299aaeafccdcb8cc8a1
Resolves: #71751
Releases: master
Reviewed-on: https://review.typo3.org/44855
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Gianluigi Martino <gmartino27@gmail.com>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/beuser/Resources/Private/Templates/Permission/Index.html

index ad7501e..509cb02 100644 (file)
                                                                </f:comment>
 
                                                                <td align="left" nowrap="nowrap">
-                                                                       <a
-                                                                               href="#"
-                                                                               class="t3-js-clickmenutrigger"
-                                                                               data-table="pages"
-                                                                               data-uid="{data.row.uid}"
-                                                                               data-listfr="1"
+                                                                       <f:link.action
+                                                                               action="edit"
+                                                                               arguments="{id: '{f:if(condition: data.row._ORIG_uid, then: data.row._ORIG_uid, else: data.row.uid)}', depth: depth}"
+                                                                               title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}"
                                                                        >
                                                                                <f:format.raw>{data.depthData}{data.HTML}</f:format.raw>
                                                                                {data.row.title -> f:format.crop(maxCharacters:20)}
-                                                                       </a>
+                                                                       </f:link.action>
                                                                </td>
 
                                                                <td>
                                                                        <f:comment>
                                                                                Edit link is workspace aware: If in ws, link to edit the ws overlay record is rendered
                                                                        </f:comment>
-                                                                       <f:if condition="{data.row._ORIG_uid}">
-                                                                               <f:then>
-                                                                                       <f:link.action
-                                                                                               action="edit"
-                                                                                               arguments="{id: data.row._ORIG_uid, depth: depth}"
-                                                                                               class="btn btn-default"
-                                                                                               title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}"
-                                                                                       >
-                                                                                               <core:icon identifier="actions-document-open" />
-                                                                                       </f:link.action>
-                                                                               </f:then>
-                                                                               <f:else>
-                                                                                       <f:link.action
-                                                                                               action="edit"
-                                                                                               arguments="{id: data.row.uid, depth: depth}"
-                                                                                               class="btn btn-default"
-                                                                                               title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}"
-                                                                                       >
-                                                                                               <core:icon identifier="actions-document-open" />
-                                                                                       </f:link.action>
-                                                                               </f:else>
-                                                                       </f:if>
+                                                                       <f:link.action
+                                                                               action="edit"
+                                                                               arguments="{id: '{f:if(condition: data.row._ORIG_uid, then: data.row._ORIG_uid, else: data.row.uid)}', depth: depth}"
+                                                                               class="btn btn-default"
+                                                                               title="{f:translate(key: 'LLL:EXT:beuser/Resources/Private/Language/locallang_mod_permission.xlf:ch_permissions')}"
+                                                                       >
+                                                                               <core:icon identifier="actions-document-open" />
+                                                                       </f:link.action>
                                                                </td>
 
                                                                <td nowrap="nowrap">