CC-4109: Playlist Builder: Add a button to remove all the items in the current editing playlist

This commit is contained in:
denise 2013-01-23 12:09:21 -05:00
parent d4e89df94e
commit 384298f680
7 changed files with 42 additions and 2 deletions

View file

@ -1001,7 +1001,10 @@ SQL;
public function deleteAllFilesFromBlock()
{
CcBlockcontentsQuery::create()->findByDbBlockId($this->id)->delete();
$this->block->reload();
//$this->block->reload();
$this->block->setDbMtime(new DateTime("now", new DateTimeZone("UTC")));
$this->block->save($this->con);
$this->con->commit();
}
// smart block functions start