Merge pull request #56805 from frappe/mergify/bp/version-16-hotfix/pr-56804

fix: guard against missing DocType in onboarding steps patch (backport #56804)
This commit is contained in:
Shllokkk
2026-07-03 02:12:52 +05:30
committed by GitHub

View File

@@ -34,6 +34,7 @@ def complete_onboarding_steps_if_record_exists(steps):
if (
step.action == "Create Entry"
and step.reference_document
and frappe.db.exists("DocType", step.reference_document)
and frappe.get_all(step.reference_document, limit=1)
):
frappe.db.set_value("Onboarding Step", step.name, "is_complete", 1, update_modified=False)