From 809937dfaef4869852dbc576b45d66bc1aba5b71 Mon Sep 17 00:00:00 2001 From: prssanna Date: Sun, 31 May 2020 22:19:08 +0530 Subject: [PATCH] fix: rename argument --- frappe/public/js/frappe/ui/notifications/notifications.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/frappe/public/js/frappe/ui/notifications/notifications.js b/frappe/public/js/frappe/ui/notifications/notifications.js index 14d3b9bbd0..64d19ce63f 100644 --- a/frappe/public/js/frappe/ui/notifications/notifications.js +++ b/frappe/public/js/frappe/ui/notifications/notifications.js @@ -333,9 +333,11 @@ frappe.ui.Notifications = class Notifications { return item_html; } - get_item_link(field) { - const link_doctype = field.type == 'Alert'? 'Notification Log': field.document_type; - const link_docname = field.type == 'Alert'? field.name: field.document_name; + 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; return frappe.utils.get_form_link( link_doctype, link_docname