CC-4639:
Give an option to allow smart blocks to reuse tracks if not enough tracks meet the time limit - fixed the bug where airtime hangs when repeat is checked but 0 files that meet criteria - fixed dynamic block bug where it didn't generate correct list
This commit is contained in:
parent
c605c97268
commit
504d9968f1
3 changed files with 6 additions and 5 deletions
|
@ -193,7 +193,8 @@ class Application_Model_Scheduler
|
|||
}
|
||||
} else {
|
||||
$dynamicFiles = $bl->getListOfFilesUnderLimit();
|
||||
foreach ($dynamicFiles as $fileId=>$f) {
|
||||
foreach ($dynamicFiles as $f) {
|
||||
$fileId = $f['id'];
|
||||
$file = CcFilesQuery::create()->findPk($fileId);
|
||||
if (isset($file) && $file->getDbFileExists()) {
|
||||
$data["id"] = $file->getDbId();
|
||||
|
@ -250,7 +251,8 @@ class Application_Model_Scheduler
|
|||
}
|
||||
} else {
|
||||
$dynamicFiles = $bl->getListOfFilesUnderLimit();
|
||||
foreach ($dynamicFiles as $fileId=>$f) {
|
||||
foreach ($dynamicFiles as $f) {
|
||||
$fileId = $f['id'];
|
||||
$file = CcFilesQuery::create()->findPk($fileId);
|
||||
if (isset($file) && $file->getDbFileExists()) {
|
||||
$data["id"] = $file->getDbId();
|
||||
|
@ -445,7 +447,6 @@ class Application_Model_Scheduler
|
|||
} else {
|
||||
$sched = new CcSchedule();
|
||||
}
|
||||
Logging::info($file);
|
||||
$sched->setDbStarts($nextStartDT)
|
||||
->setDbEnds($endTimeDT)
|
||||
->setDbCueIn($file['cuein'])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue