CC-3730 : Boundary tracks need recalculating when resizing current show on calendar (by dragging)
This commit is contained in:
parent
96d2f657f7
commit
d19ed4a97e
2 changed files with 4 additions and 1 deletions
|
@ -196,7 +196,7 @@ class Application_Model_Show {
|
||||||
try {
|
try {
|
||||||
//update the status flag in cc_schedule.
|
//update the status flag in cc_schedule.
|
||||||
$instances = CcShowInstancesQuery::create()
|
$instances = CcShowInstancesQuery::create()
|
||||||
->filterByDbStarts($current_timestamp, Criteria::GREATER_EQUAL)
|
->filterByDbEnds($current_timestamp, Criteria::GREATER_THAN)
|
||||||
->filterByDbShowId($this->_showId)
|
->filterByDbShowId($this->_showId)
|
||||||
->find($con);
|
->find($con);
|
||||||
|
|
||||||
|
|
|
@ -134,6 +134,9 @@ class CcShowInstances extends BaseCcShowInstances {
|
||||||
->filterByDbPlayoutStatus(0, Criteria::GREATER_EQUAL)
|
->filterByDbPlayoutStatus(0, Criteria::GREATER_EQUAL)
|
||||||
->filterByDbStarts($this->ends, Criteria::GREATER_THAN)
|
->filterByDbStarts($this->ends, Criteria::GREATER_THAN)
|
||||||
->update(array('DbPlayoutStatus' => 0), $con);
|
->update(array('DbPlayoutStatus' => 0), $con);
|
||||||
|
|
||||||
|
$this->setDbLastScheduled(gmdate("Y-m-d H:i:s"));
|
||||||
|
$this->save($con);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue