Selaa lähdekoodia

fix: clear `notifications` cache when deleting a Notification

(cherry picked from commit c5face41b3)
version-14
Sagar Vora 2 vuotta sitten
committed by Mergify
vanhempi
commit
7dbdfda895
1 muutettua tiedostoa jossa 3 lisäystä ja 0 poistoa
  1. +3
    -0
      frappe/email/doctype/notification/notification.py

+ 3
- 0
frappe/email/doctype/notification/notification.py Näytä tiedosto

@@ -387,6 +387,9 @@ def get_context(context):
if not is_html(self.message):
self.message = frappe.utils.md_to_html(self.message)

def on_trash(self):
frappe.cache().hdel("notifications", self.document_type)


@frappe.whitelist()
def get_documents_for_today(notification):


Ladataan…
Peruuta
Tallenna