[Fix] Codacy
https://www.codacy.com/app/frappe/frappe/pullRequest?prid=900990
This commit is contained in:
parent
4922f70076
commit
cbfbaed73e
1 changed files with 2 additions and 2 deletions
|
|
@ -3,7 +3,7 @@
|
|||
|
||||
frappe.webhook = {
|
||||
set_fieldname_select: function(frm) {
|
||||
doc = frm.doc;
|
||||
var doc = frm.doc;
|
||||
if (doc.webhook_doctype) {
|
||||
frappe.model.with_doctype(doc.webhook_doctype, function() {
|
||||
var fields = $.map(frappe.get_doc("DocType", frm.doc.webhook_doctype).fields, function(d) {
|
||||
|
|
@ -18,7 +18,7 @@ frappe.webhook = {
|
|||
return null;
|
||||
}
|
||||
});
|
||||
fields.unshift({"label":"Name (Doc Name)","value":"name"})
|
||||
fields.unshift({"label":"Name (Doc Name)","value":"name"});
|
||||
frappe.meta.get_docfield("Webhook Data", "fieldname", frm.doc.name).options = [""].concat(fields);
|
||||
});
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue