fix: Make fetch from applicable for select fields

This commit is contained in:
deepeshgarg007 2019-07-19 14:59:45 +05:30
parent 145fd7712d
commit cfdbff80e8

View file

@ -169,7 +169,7 @@ frappe.ui.form.ScriptManager = Class.extend({
function setup_add_fetch(df) {
if((['Data', 'Read Only', 'Text', 'Small Text', 'Currency',
'Text Editor', 'Code', 'Link', 'Float', 'Int', 'Date'].includes(df.fieldtype) || df.read_only==1)
'Text Editor', 'Code', 'Link', 'Float', 'Int', 'Date', 'Select'].includes(df.fieldtype) || df.read_only==1)
&& df.fetch_from && df.fetch_from.indexOf(".")!=-1) {
var parts = df.fetch_from.split(".");
me.frm.add_fetch(parts[0], parts[1], df.fieldname);