Merge pull request #12727 from prssanna/checkbox-fetch-from

fix: enable fetch from for Check fieldtype
This commit is contained in:
mergify[bot] 2021-03-30 15:09:06 +00:00 committed by GitHub
commit c438359d3f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -184,7 +184,7 @@ frappe.ui.form.ScriptManager = Class.extend({
}
function setup_add_fetch(df) {
if((['Data', 'Read Only', 'Text', 'Small Text', 'Currency',
if ((['Data', 'Read Only', 'Text', 'Small Text', 'Currency', 'Check',
'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(".");