From b11f30b44e5bdd5b4fd3a2f5c450d958b97cd9b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elan=20Ruusam=C3=A4e?= Date: Tue, 26 May 2020 15:12:52 +0300 Subject: [PATCH] Add issue_url to Note::getDetails --- lib/eventum/class.note.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/eventum/class.note.php b/lib/eventum/class.note.php index e8412b27b0..83311cee68 100644 --- a/lib/eventum/class.note.php +++ b/lib/eventum/class.note.php @@ -97,6 +97,9 @@ public static function getDetails($note_id): array $res['attachments'] = $mail->getAttachment()->getAttachments(); } + // helpers to simplify client apps + $res['issue_url'] = Setup::getBaseUrl() . 'view.php?id=' . $res['not_iss_id']; + /** @deprecated */ $res['timestamp'] = $res['not_created_date_ts'];