From dd923fb7f80e02c17456d64c727fe2e4014d36e3 Mon Sep 17 00:00:00 2001 From: raviks789 <33730024+raviks789@users.noreply.github.com> Date: Thu, 14 Sep 2023 12:47:04 +0200 Subject: [PATCH] EventDetail: Get object url directly from `object` table --- library/Notifications/Widget/Detail/EventDetail.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/Notifications/Widget/Detail/EventDetail.php b/library/Notifications/Widget/Detail/EventDetail.php index 1c80eac6..0b1e2f79 100644 --- a/library/Notifications/Widget/Detail/EventDetail.php +++ b/library/Notifications/Widget/Detail/EventDetail.php @@ -71,7 +71,7 @@ protected function createRelatedObject(): array { //TODO(sd): This is just placeholder. Add hook implementation instead $relatedObj = Html::tag('ul', ['class' => ['item-list', 'action-list'], 'data-base-target' => '_next']); - $obj = new Link($this->event->object->host, $this->event->source_object->url, ['class' => 'subject']); + $obj = new Link($this->event->object->host, $this->event->object->url, ['class' => 'subject']); if ($this->event->object->service) { $obj = Html::sprintf(