feat (notificaion): email from 'Table Multiselect' field (#22733)

* feat (notificaion): table multiselect field

* refactor: use model.table_fields instead of duplicating

---------

Co-authored-by: Ankush Menat <ankush@frappe.io>
This commit is contained in:
Sayed Ayman 2023-10-16 09:32:19 +03:00 committed by GitHub
parent e20d79bc28
commit 94263bf4f2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -50,7 +50,7 @@ frappe.notification = {
if (frm.doc.channel === "Email") {
receiver_fields = $.map(fields, function (d) {
// Add User and Email fields from child into select dropdown
if (d.fieldtype == "Table") {
if (frappe.model.table_fields.includes(d.fieldtype)) {
let child_fields = frappe.get_doc("DocType", d.options).fields;
return $.map(child_fields, function (df) {
return df.options == "Email" ||