ソースを参照

check whether the used filters were really parseable and usable and did not just result in an empty string or dict (#3822)

version-14
RogueRonin 8年前
committed by Rushabh Mehta
コミット
4776011cbc
1個のファイルの変更5行の追加0行の削除
  1. +5
    -0
      frappe/client.py

+ 5
- 0
frappe/client.py ファイルの表示

@@ -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()


読み込み中…
キャンセル
保存