CC-3634: Media Folder: if file was deleted from file system, and the file was

scheduled in the future, it wasn't getting deleted from AIrtime

- fixed
This commit is contained in:
James 2012-04-12 16:17:19 -04:00
parent 4ef18fb00f
commit 53e37ee826
3 changed files with 30 additions and 6 deletions

View file

@ -578,6 +578,11 @@ class Application_Model_Schedule {
global $CC_CONFIG, $CC_DBC;
$CC_DBC->query("TRUNCATE TABLE ".$CC_CONFIG["scheduleTable"]);
}
public static function deleteWithFileId($fileId){
global $CC_CONFIG, $CC_DBC;
$CC_DBC->query("DELETE FROM ".$CC_CONFIG["scheduleTable"]." WHERE file_id=$fileId");
}
public static function createNewFormSections($p_view){
$isSaas = Application_Model_Preference::GetPlanLevel() == 'disabled'?false:true;