Merge pull request #3792 from Icinga/fix/multiple-announcements-broken-without-js

Multiple announcements broken without javascript
This commit is contained in:
Johannes Meyer 2019-05-23 10:46:05 +02:00 committed by GitHub
commit 3a1876e018
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -110,7 +110,7 @@ class AnnouncementIniRepository extends IniRepository
$now = new DateTime(); $now = new DateTime();
$query = $this $query = $this
->select(array('hash', 'message')) ->select(array('hash', 'message', 'start'))
->setFilter(new FilterAnd(array( ->setFilter(new FilterAnd(array(
Filter::expression('start', '<=', $now), Filter::expression('start', '<=', $now),
Filter::expression('end', '>=', $now) Filter::expression('end', '>=', $now)