CC-3369 : Ability to identify tracks that are actually inside a show in the schedule table
This commit is contained in:
parent
f8608f3511
commit
0f9800a6bd
9 changed files with 212 additions and 17 deletions
|
@ -229,6 +229,15 @@ class Application_Model_Scheduler {
|
|||
}
|
||||
}
|
||||
|
||||
//update the status flag in cc_schedule.
|
||||
$instances = CcShowInstancesQuery::create()
|
||||
->filterByPrimaryKeys($affectedShowInstances)
|
||||
->find($this->con);
|
||||
|
||||
foreach ($instances as $instance) {
|
||||
$instance->updateScheduleStatus($this->con);
|
||||
}
|
||||
|
||||
//update the last scheduled timestamp.
|
||||
CcShowInstancesQuery::create()
|
||||
->filterByPrimaryKeys($affectedShowInstances)
|
||||
|
@ -383,11 +392,20 @@ class Application_Model_Scheduler {
|
|||
}
|
||||
}
|
||||
|
||||
foreach($showInstances as $instance) {
|
||||
foreach ($showInstances as $instance) {
|
||||
$this->removeGaps($instance);
|
||||
}
|
||||
}
|
||||
|
||||
//update the status flag in cc_schedule.
|
||||
$instances = CcShowInstancesQuery::create()
|
||||
->filterByPrimaryKeys($showInstances)
|
||||
->find($this->con);
|
||||
|
||||
foreach ($instances as $instance) {
|
||||
$instance->updateScheduleStatus($this->con);
|
||||
}
|
||||
|
||||
//update the last scheduled timestamp.
|
||||
CcShowInstancesQuery::create()
|
||||
->filterByPrimaryKeys($showInstances)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue