Selaa lähdekoodia

fix(notification): redirect to the referenced document if present otherwise go to notification log (#18334) (#18339)

(cherry picked from commit 121a6e1108)

Co-authored-by: Ritwik Puri <ritwikpuri5678@gmail.com>
version-14
mergify[bot] 2 vuotta sitten
committed by GitHub
vanhempi
commit
9cafce85bb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 muutettua tiedostoa jossa 6 lisäystä ja 6 poistoa
  1. +6
    -6
      frappe/public/js/frappe/ui/notifications/notifications.js

+ 6
- 6
frappe/public/js/frappe/ui/notifications/notifications.js Näytä tiedosto

@@ -327,12 +327,12 @@ class NotificationsView extends BaseNotificationsView {
}

get_item_link(notification_doc) {
const link_doctype =
notification_doc.type == "Alert" ? "Notification Log" : notification_doc.document_type;
const link_docname =
notification_doc.type == "Alert"
? notification_doc.name
: notification_doc.document_name;
const link_doctype = notification_doc.document_type
? notification_doc.document_type
: "Notification Log";
const link_docname = notification_doc.document_name
? notification_doc.document_name
: notification_doc.name;
return frappe.utils.get_form_link(link_doctype, link_docname);
}



Ladataan…
Peruuta
Tallenna