SAAS-536: Check for future scheduled files uses cloud_file id instead of cc_files id

This commit is contained in:
drigato 2015-01-13 15:49:57 -05:00
parent 9d6cf8620f
commit 2185fc9ca4
2 changed files with 6 additions and 1 deletions

View File

@ -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();
} }

View File

@ -140,4 +140,9 @@ class CcFiles extends BaseCcFiles {
return null; return null;
} }
public function getCcFileId()
{
return $this->id;
}
} // CcFiles } // CcFiles