Fixed a repeating show bug
If the first instance has already started or ended we were getting the wrong next instance because the result set was not ordered
This commit is contained in:
parent
10a5596ace
commit
1c2a307d34
1 changed files with 1 additions and 0 deletions
|
@ -430,6 +430,7 @@ class Application_Service_ShowFormService
|
|||
->filterByDbShowId($this->ccShow->getDbId())
|
||||
->filterByDbModifiedInstance(false)
|
||||
->filterByDbStarts(gmdate("Y-m-d H:i:s"), Criteria::GREATER_THAN)
|
||||
->orderByDbStarts()
|
||||
->findOne();
|
||||
|
||||
$starts = new DateTime($ccShowInstance->getDbStarts(), new DateTimeZone("UTC"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue