Skip to content

Commit

Permalink
fix: fetch from sql
Browse files Browse the repository at this point in the history
  • Loading branch information
sibikumarkuppusamy committed Nov 19, 2024
1 parent 23e501a commit 45f5f71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion frappe/core/doctype/doctype/doctype.py
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ def setup_fields_to_fetch(self):
SET `{fieldname}` = source.`{source_fieldname}`
FROM `tab{link_doctype}` AS source
WHERE `target`.`{link_fieldname}` = `source`.`name`
AND ifnull(`target`.`{fieldname}`, '')=''
AND (`target`.`{fieldname}` IS NULL OR `target`.`{fieldname}` = 0)
"""
else:
update_query = """
Expand Down

0 comments on commit 45f5f71

Please sign in to comment.