mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-20 02:34:41 +00:00
fix: minor patch fix
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user