Merge pull request #10578 from scmmishra/count-fix-develop
fix: don't cache zero count
This commit is contained in:
commit
6fee3b9dfd
1 changed files with 2 additions and 2 deletions
|
|
@ -183,8 +183,8 @@ class Workspace:
|
|||
|
||||
def _doctype_contains_a_record(name):
|
||||
exists = self.table_counts.get(name, None)
|
||||
if exists is None:
|
||||
if not frappe.db.get_value('DocType', name, 'issingle', cache=True):
|
||||
if not exists:
|
||||
if not frappe.db.get_value('DocType', name, 'issingle'):
|
||||
exists = frappe.db.count(name)
|
||||
else:
|
||||
exists = True
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue