Issue Bug Closed

#90334Command "site:list" outputs wrong lines only with "Locale" and "Status"

Wittkiel Gruppe 02/06/20, 09:04 updated 02/27/20, 12:43

Description

We are using multiple site-configurations. The CLI-command “site:list” outputs after every new line one additional wrong line with only locale and status.

sysext/core/Classes/Command/SiteListCommand.php
Current code:

[...]
foreach ($sites as $site) {
    $baseUrls = [];
    $languages = [];
    foreach ($site->getLanguages() as $language) {
[...]

Fixed code:

[...]
foreach ($sites as $site) {
    $baseUrls = [];
    $languages = [];
    $locales = [];
    $status = [];
    foreach ($site->getLanguages() as $language) {
[...]

site-list.png

Reviews 2