From 6d5531f341cc53e9c85997fb6b0b228a02b8a09c Mon Sep 17 00:00:00 2001 From: Naomi Aro Date: Tue, 27 Aug 2013 19:30:17 -0400 Subject: [PATCH] CC-5310 : Playlist -> Crash happens on draging a song after a webstream into a playlist --- .../views/scripts/playlist/update.phtml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/airtime_mvc/application/views/scripts/playlist/update.phtml b/airtime_mvc/application/views/scripts/playlist/update.phtml index e1c11f406..0171efafa 100644 --- a/airtime_mvc/application/views/scripts/playlist/update.phtml +++ b/airtime_mvc/application/views/scripts/playlist/update.phtml @@ -10,6 +10,9 @@ if ($item['type'] == 2) { $staticBlock = $bl->isStatic(); $fileUrl = null; } +else if ($item['type'] == 1) { + $fileUrl = null; +} else if ($item['type'] == 0) { $audiofile = Application_Model_StoredFile::RecallById($item['item_id']); $fileUrl = $audiofile->getFileUrl(); @@ -17,12 +20,12 @@ else if ($item['type'] == 0) { if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) { $nextAudiofile = Application_Model_StoredFile::RecallById($items[$i+1]['item_id']); - $nextFileUrl = $nextAudiofile->getFileUrl(); + $nextFileUrl = $nextAudiofile->getFileUrl(); } ?>
  • " unqid="">
    - +
    " data-mime-type=""> @@ -89,8 +92,8 @@ if (($i < count($items) -1) && ($items[$i+1]['type'] == 0)) { if(($i < count($items) -1) && !($items[$i]['type'] == 2 && $items[$i+1]['type'])): ?>