SAAS-536: Check for future scheduled files uses cloud_file id instead of cc_files id
This commit is contained in:
parent
9d6cf8620f
commit
2185fc9ca4
|
@ -377,7 +377,7 @@ SQL;
|
||||||
public function delete()
|
public function delete()
|
||||||
{
|
{
|
||||||
// Check if the file is scheduled to be played in the future
|
// Check if the file is scheduled to be played in the future
|
||||||
if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->getId())) {
|
if (Application_Model_Schedule::IsFileScheduledInTheFuture($this->_file->getCcFileId())) {
|
||||||
throw new DeleteScheduledFileException();
|
throw new DeleteScheduledFileException();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -140,4 +140,9 @@ class CcFiles extends BaseCcFiles {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public function getCcFileId()
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
} // CcFiles
|
} // CcFiles
|
||||||
|
|
Loading…
Reference in New Issue