CC-3369 : Ability to identify tracks that are actually inside a show in the schedule table

This commit is contained in:
Naomi Aro 2012-03-01 14:59:06 +01:00
parent f8608f3511
commit 0f9800a6bd
9 changed files with 212 additions and 17 deletions

View file

@ -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)