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:
parent
38173bd3a2
commit
bf69f23343
2 changed files with 29 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue