Skip to content

Commit

Permalink
Add issue_url to Note::getDetails
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 26, 2020
1 parent 805a5dd commit b11f30b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/eventum/class.note.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];

Expand Down

0 comments on commit b11f30b

Please sign in to comment.