Actions
Bug #103559
closedOpening broken link list as non-admin user throws exception if searchFields.sys_file_reference = link is set
Start date:
2024-04-08
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
13
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Reproduce¶
- Change TSconfig, e.g. mod.linkvalidator.searchFields.sys_file_reference = link
- Switch to a non-admin user
- Open the broken link list ("Check links" module) on a page where the above TSconfig is active
An exception will be thrown, see next point:
Exception¶
(1/1) #1476107295 TYPO3\CMS\Core\Error\Exception PHP Warning: Undefined array key "uid_local:type" in /var/www/t3coredev13/typo3/sysext/linkvalidator/Classes/QueryRestrictions/EditableRestriction.php line 67
in /var/www/t3coredev13/typo3/sysext/linkvalidator/Classes/QueryRestrictions/EditableRestriction.php line 67
function:
63 $this->allowedLanguages = $this->getAllowedLanguagesForCurrentUser(); 64 foreach ($searchFields as $table => $fields) { 65 if ($table !== 'pages' && ($GLOBALS['TCA'][$table]['ctrl']['type'] ?? false)) { 66 $type = $GLOBALS['TCA'][$table]['ctrl']['type']; 67 $fieldConfig = $GLOBALS['TCA'][$table]['columns'][$type]['config'];
Related¶
- see brofix issue: https://github.com/sypets/brofix/issues/358
Actions