Sfoglia il codice sorgente

fix: must check array length (#18159)

If not check , it will not  work
version-14
Nrtyck 2 anni fa
committed by GitHub
parent
commit
d43e084bc5
Non sono state trovate chiavi note per questa firma nel database ID Chiave GPG: 4AEE18F83AFDEB23
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. +1
    -1
      frappe/email/doctype/notification/notification.js

+ 1
- 1
frappe/email/doctype/notification/notification.js Vedi File

@@ -175,7 +175,7 @@ frappe.ui.form.on("Notification", {
notification: frm.doc.name,
},
callback: function (r) {
if (r.message) {
if (r.message && r.message.length > 0) {
frappe.msgprint(r.message);
} else {
frappe.msgprint(__("No alerts for today"));


Caricamento…
Annulla
Salva