CC-4109: Playlist Builder: Add a button to remove all the items in the current editing playlist
This commit is contained in:
parent
d4e89df94e
commit
384298f680
7 changed files with 42 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue