CC-5904: New linked show instances may get an old copy of the schedule
This commit is contained in:
parent
ee52c7692c
commit
81357bc51f
2 changed files with 59 additions and 29 deletions
|
@ -288,7 +288,26 @@ class CcShow extends BaseCcShow {
|
|||
}
|
||||
return $instanceIds;
|
||||
}
|
||||
|
||||
/*
|
||||
* Returns all show instances ordered by 'starts' column in desc order.
|
||||
*/
|
||||
public function getInstanceIdsSortedByMostRecentStartTime()
|
||||
{
|
||||
$instances = CcShowInstancesQuery::create()
|
||||
->filterByCcShow($this)
|
||||
->filterByDbModifiedInstance(false)
|
||||
->orderByDbStarts(Criteria::DESC)
|
||||
->find();
|
||||
|
||||
$instanceIdsDescOrder = array();
|
||||
foreach ($instances as $instance) {
|
||||
$instanceIdsDescOrder[] = $instance->getDbId();
|
||||
}
|
||||
return $instanceIdsDescOrder;
|
||||
}
|
||||
|
||||
//what is this??
|
||||
public function getOtherInstances($instanceId)
|
||||
{
|
||||
return CcShowInstancesQuery::create()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue