Project

General

Profile

Actions

Bug #89584

closed

Wrong description for getRecordLocalization return

Added by Kevin Ditscheid over 4 years ago. Updated over 4 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2019-11-05
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
10
PHP Version:
7.3
Tags:
Complexity:
no-brainer
Is Regression:
Sprint Focus:

Description

The description of the getRecordLocalization method says in its @return annotation, that it will return FALSE, if no localization record could be found, with is not true, because it will return an empty array, if the QueryBuilder finds no results. It will only return FALSE, if the table is not localizable.
To be conform with the API, I would suggest changing that in a way, that the method will also return FALSE when no records can be found.

https://github.com/TYPO3/TYPO3.CMS/blob/master/typo3/sysext/backend/Classes/Utility/BackendUtility.php#L306

Actions

Also available in: Atom PDF