Revert: check if single doctype exists

This commit is contained in:
Anand Doshi 2014-04-30 16:45:14 +05:30
parent 5e2757a9ee
commit 40d15f4c07

View file

@ -328,8 +328,9 @@ class Database:
return self.get_values_from_single(fields, filters, doctype, as_dict, debug, update)
def get_values_from_single(self, fields, filters, doctype, as_dict=False, debug=False, update=None):
if not frappe.model.meta.is_single(doctype):
raise frappe.DoesNotExistError("DocType", doctype)
# TODO
# if not frappe.model.meta.is_single(doctype):
# raise frappe.DoesNotExistError("DocType", doctype)
if fields=="*" or isinstance(filters, dict):
# check if single doc matches with filters