Skip to content

Commit

Permalink
fix: Only validate fetch from when user modifies it
Browse files Browse the repository at this point in the history
(cherry picked from commit b044ffe)
  • Loading branch information
ankush committed Feb 28, 2024
1 parent 10fa309 commit bae8ab9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frappe/core/doctype/doctype/doctype.py
Original file line number Diff line number Diff line change
Expand Up @@ -1590,6 +1590,9 @@ def check_no_of_ratings(docfield):
frappe.throw(_("Options for Rating field can range from 3 to 10"))

def check_fetch_from(docfield):
if not frappe.request:
return

fetch_from = docfield.fetch_from
fieldname = docfield.fieldname
if not fetch_from:
Expand Down

0 comments on commit bae8ab9

Please sign in to comment.