CC-3504 : Adding a clip when nothing is playing should schedule the clip at the current time
This commit is contained in:
parent
8cb5ccbe41
commit
0746115d2c
|
@ -111,10 +111,6 @@ class CcShowInstances extends BaseCcShowInstances {
|
|||
//post save hook to update the cc_schedule status column for the tracks in the show.
|
||||
public function updateScheduleStatus(PropelPDO $con) {
|
||||
|
||||
Logging::log("in post save for showinstances");
|
||||
|
||||
$now = time();
|
||||
|
||||
//scheduled track is in the show
|
||||
CcScheduleQuery::create()
|
||||
->filterByDbInstanceId($this->id)
|
||||
|
@ -122,8 +118,6 @@ class CcShowInstances extends BaseCcShowInstances {
|
|||
->filterByDbEnds($this->ends, Criteria::LESS_EQUAL)
|
||||
->update(array('DbPlayoutStatus' => 1), $con);
|
||||
|
||||
Logging::log("updating status for in show items.");
|
||||
|
||||
//scheduled track is a boundary track
|
||||
CcScheduleQuery::create()
|
||||
->filterByDbInstanceId($this->id)
|
||||
|
@ -138,7 +132,6 @@ class CcShowInstances extends BaseCcShowInstances {
|
|||
->filterByDbPlayoutStatus(0, Criteria::GREATER_EQUAL)
|
||||
->filterByDbStarts($this->ends, Criteria::GREATER_THAN)
|
||||
->update(array('DbPlayoutStatus' => 0), $con);
|
||||
|
||||
}
|
||||
|
||||
public function preInsert(PropelPDO $con = null) {
|
||||
|
|
Loading…
Reference in New Issue