fix!: Remove weird fallback to tabSingles (#36517)

This doesn't make any sense.
This commit is contained in:
Ankush Menat 2026-01-30 16:40:18 +05:30 committed by GitHub
parent 76253eba00
commit fa45415086
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -677,22 +677,6 @@ class Database:
or str(e).startswith("Invalid DocType")
):
out = None
elif (not ignore) and frappe.db.is_table_missing(e):
# table not found, look in singles
fields = (
[fieldname] if (isinstance(fieldname, str) and fieldname != "*") else fieldname
)
out = self.get_values_from_single(
fields,
filters,
doctype,
as_dict,
debug,
update,
run=run,
distinct=distinct,
)
else:
raise
else: