CC-4249: Playlist: Playlist's length doesn't update if it contains a smart playlist which the length is changed

-fixed
This commit is contained in:
denise 2012-08-23 11:53:44 -04:00
parent 38173bd3a2
commit bf69f23343
2 changed files with 29 additions and 0 deletions

View file

@ -451,6 +451,10 @@ EOT;
$this->block->save($this->con);
$this->con->commit();
//check if block is in any playlists and update the playlist's length
Application_Model_Playlist::updatePlaylistsLengthWithBlock($this->id, $this->getLength());
} catch (Exception $e) {
$this->con->rollback();
throw $e;
@ -562,6 +566,11 @@ EOT;
$this->block->save($this->con);
$this->con->commit();
//check if block is in any playlists and update the playlist's length
Application_Model_Playlist::updatePlaylistsLengthWithBlock($this->id, $this->getLength());
} catch (Exception $e) {
$this->con->rollback();
throw $e;