Fixes #5943 -- Allow sequential playlists to be set to folders too.
This commit is contained in:
parent
32646cf7c7
commit
415e19e15d
|
@ -35,11 +35,7 @@ final class StationPlaylistFolderRepository extends AbstractStationBasedReposito
|
||||||
->execute();
|
->execute();
|
||||||
|
|
||||||
foreach ($playlists as $playlistId => $playlistRecord) {
|
foreach ($playlists as $playlistId => $playlistRecord) {
|
||||||
/** @var Entity\StationPlaylist $playlistRecord */
|
if (Entity\Enums\PlaylistSources::Songs === $playlistRecord->getSourceEnum()) {
|
||||||
if (
|
|
||||||
Entity\Enums\PlaylistOrders::Sequential !== $playlistRecord->getOrderEnum()
|
|
||||||
&& Entity\Enums\PlaylistSources::Songs === $playlistRecord->getSourceEnum()
|
|
||||||
) {
|
|
||||||
/** @var Entity\StationPlaylist $playlist */
|
/** @var Entity\StationPlaylist $playlist */
|
||||||
$playlist = $this->em->getReference(Entity\StationPlaylist::class, $playlistId);
|
$playlist = $this->em->getReference(Entity\StationPlaylist::class, $playlistId);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue