SAAS-1031: Can't add tracks to a new playlist

This commit is contained in:
Albert Santoni 2015-08-28 13:22:08 -04:00
parent 91cad81c4b
commit f36ff944c2

View file

@ -1,6 +1,8 @@
<?php
$items = $this->contents;
if (count($items) && ($this->obj instanceof Application_Model_Block && $this->obj->isStatic())) : ?>
$isStaticSmartBlock = ($this->obj instanceof Application_Model_Block && $this->obj->isStatic());
$isPlaylist = ($this->obj instanceof Application_Model_Playlist);
if (count($items) && ($isStaticSmartBlock || $isPlaylist)) : ?>
<?php $i = 0; ?>
<?php foreach($items as $item) :
$staticBlock = null;