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:
parent
e20d79bc28
commit
94263bf4f2
1 changed files with 1 additions and 1 deletions
|
|
@ -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" ||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue