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:
drigato 2015-04-15 10:48:31 -04:00
parent 87b6f0db48
commit 3b33f55652
1 changed files with 1 additions and 0 deletions

View File

@ -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"));