Skip to content

Commit

Permalink
EventDetail: Fix data type of argument given to IncidentList construc…
Browse files Browse the repository at this point in the history
…tor`
  • Loading branch information
raviks789 committed Mar 20, 2024
1 parent e4849c0 commit 55b17d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion library/Notifications/Widget/Detail/EventDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

namespace Icinga\Module\Notifications\Widget\Detail;

use ArrayIterator;
use ArrayObject;
use Icinga\Date\DateFormatter;
use Icinga\Module\Notifications\Model\Event;
use Icinga\Module\Notifications\Model\Objects;
Expand All @@ -12,6 +14,7 @@
use ipl\Html\BaseHtmlElement;
use ipl\Html\Html;
use ipl\Html\ValidHtml;
use ipl\Orm\ResultSet;
use ipl\Web\Widget\HorizontalKeyValue;
use ipl\Web\Widget\Link;
use ipl\Web\Widget\StateBall;
Expand Down Expand Up @@ -113,7 +116,7 @@ protected function createIncident(): ?array

return [
Html::tag('h2', t('Incident')),
new IncidentList([$this->event->incident])
new IncidentList(new ResultSet(new ArrayObject([$this->event->incident])))
];
}

Expand Down

0 comments on commit 55b17d8

Please sign in to comment.