Revant Nandgaonkar 7 anos atrás
pai
commit
cbfbaed73e
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      frappe/integrations/doctype/webhook/webhook.js

+ 2
- 2
frappe/integrations/doctype/webhook/webhook.js Ver arquivo

@@ -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);
});
}


Carregando…
Cancelar
Salvar