Project

General

Profile

Actions

Bug #79117

closed

First domain selection in BackendUtility doesn't work

Added by Matthias Toscanelli over 7 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2016-12-30
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
8
PHP Version:
Tags:
Complexity:
Is Regression:
No
Sprint Focus:

Description

This function should return the first domain found in rootline.
Now "getRecordsByField" can return an empty array, so we have to check that the result is a non-empty array.

TYPO3\CMS\Backend\Utility\BackendUtility:firstDomainRecord (line 3997)

if (is_array($dRec) && $dRec) {
    $dRecord = reset($dRec);
    return rtrim($dRecord['domainName'], '/');
}

Actions #1

Updated by Gerrit Code Review over 7 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/51069

Actions #2

Updated by Wouter Wolters about 7 years ago

  • Status changed from Under Review to Resolved
Actions #3

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF