Incorrect display of the schedule

To be completed by the original poster:

CMS Version

4.0.5 docker

Player Type

android

Player Version

4

Issue

HELP!!! View of modify schedule:

image

image

Warning : Undefined array key “playlistId” in /var/www/cms/lib/Factory/LayoutFactory.php on line 639

Nothing for “Warning: Undefined array key “playlistId” in /var/www/cms/lib/Factory/LayoutFactory.php on line 639”?

Solution:

public function getLinkedFullScreenPlaylistId(int $campaignId): ?int
{
$playlistId = $this->getStore()->select(‘SELECT lkplaylistplaylist.childId
FROM region
INNER JOIN playlist
ON playlist.regionId = region.regionId
INNER JOIN lkplaylistplaylist
ON lkplaylistplaylist.parentId = playlist.playlistId
INNER JOIN widget
ON widget.playlistId = lkplaylistplaylist.childId
INNER JOIN lkwidgetmedia
ON widget.widgetId = lkwidgetmedia.widgetId
INNER JOIN lkcampaignlayout lkcl
ON lkcl.layoutid = region.layoutid
AND lkcl.CampaignID = :campaignId’,
[‘campaignId’ => $campaignId]
);
if (count($playlistId) <= 0) {
return null;
}
return $playlistId[0][‘childId’];
}

Update the line
return $playlistId[0][‘playlistId’];
with
return $playlistId[0][‘childId’];
connectin to container: docker exec -it <container_name_or_id> /bin/bash