CC-4641: Now Playing: Extending show's length won't change the overbooked track's style

-fixed
This commit is contained in:
denise 2012-10-31 12:36:45 -04:00
parent 1899d588ee
commit fd0e1c3c95
1 changed files with 3 additions and 0 deletions

View File

@ -270,6 +270,8 @@ SQL;
try {
//update the status flag in cc_schedule.
CcShowInstancesPeer::clearInstancePool();
$instances = CcShowInstancesQuery::create()
->filterByDbEnds($current_timestamp, Criteria::GREATER_THAN)
->filterByDbShowId($this->_showId)
@ -1253,6 +1255,7 @@ SQL;
if ($data['add_show_id'] != -1) {
$con = Propel::getConnection(CcSchedulePeer::DATABASE_NAME);
$con->beginTransaction();
//current timesamp in UTC.
$current_timestamp = gmdate("Y-m-d H:i:s");