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
87b6f0db48
commit
3b33f55652
1 changed files with 1 additions and 0 deletions
|
@ -402,6 +402,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