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 10a5596ace
commit 1c2a307d34
1 changed files with 1 additions and 0 deletions

View File

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