fix: minor patch fix
This commit is contained in:
parent
4538658d02
commit
99d46844d5
@ -12,7 +12,7 @@ def execute():
|
||||
def set_issue_priority():
|
||||
# Adds priority from issue to Issue Priority DocType as Priority is a new DocType.
|
||||
for priority in frappe.get_meta("Issue").get_field("priority").options.split("\n"):
|
||||
if not frappe.db.exists("Issue Priority", priority):
|
||||
if priority and not frappe.db.exists("Issue Priority", priority):
|
||||
frappe.get_doc({
|
||||
"doctype": "Issue Priority",
|
||||
"name": priority
|
||||
|
Loading…
x
Reference in New Issue
Block a user