Skip to content

Commit

Permalink
EventDetail: Fix data type of argument given to IncidentList constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
raviks789 committed Mar 21, 2024
1 parent f57d76b commit 3d342ec
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/Notifications/Widget/Detail/EventDetail.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace Icinga\Module\Notifications\Widget\Detail;

use ArrayObject;
use Icinga\Date\DateFormatter;
use Icinga\Module\Notifications\Model\Event;
use Icinga\Module\Notifications\Model\Objects;
Expand All @@ -12,6 +13,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 +115,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 3d342ec

Please sign in to comment.