Actions
Bug #94381
closedEditors dont see broken links because of invalid use of coalesce operator in LinkAnalyzer
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Linkvalidator
Target version:
-
Start date:
2021-06-18
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi,
We have noticed that editors don't see broken links in the backend because the display of these links through theTYPO3\CMS\Linkvalidator\QueryRestrictions\EditableRestriction
is excluded.
In our case the link entries in the database in the column `element_type`
the table `tx_linkvalidator_link`
has no value.
This field is actually filled in the method checklinks of the class TYPO3\CMS\Linkvalidator\LinkAnalyzer
.
However, the following condition is defined:if ($entryValue['row'][$typeField] ?? false) {
$record['element_type'] = $entryValue['row'][$typeField];
}
The problem is now, if the type value is 0, this value is never written in the field. This condition would have to be corrected or removed.
Actions