Ver a proveniência

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] há 2 anos
committed by GitHub
ascendente
cometimento
9cafce85bb
Não foi encontrada uma chave conhecida para esta assinatura, na base de dados ID da chave GPG: 4AEE18F83AFDEB23
1 ficheiros alterados com 6 adições e 6 eliminações
  1. +6
    -6
      frappe/public/js/frappe/ui/notifications/notifications.js

+ 6
- 6
frappe/public/js/frappe/ui/notifications/notifications.js Ver ficheiro

@@ -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);
}



Carregando…
Cancelar
Guardar