|
|
@@ -72,6 +72,11 @@ def get_value(doctype, fieldname, filters=None, as_dict=True, debug=False): |
|
|
|
fieldname = "name" |
|
|
|
pass |
|
|
|
|
|
|
|
# check whether the used filters were really parseable and usable |
|
|
|
# and did not just result in an empty string or dict |
|
|
|
if not filters: |
|
|
|
filters = None |
|
|
|
|
|
|
|
return frappe.db.get_value(doctype, filters, fieldname, as_dict=as_dict, debug=debug) |
|
|
|
|
|
|
|
@frappe.whitelist() |
|
|
|