fix: feed not visible when filter is reset
This commit is contained in:
parent
fc1e352adf
commit
4af3d4e4bb
@ -14,7 +14,8 @@ def get_feed(name, document_types=None, start=0, page_length=20):
|
||||
filters = {'patient': name}
|
||||
if document_types:
|
||||
document_types = json.loads(document_types)
|
||||
filters['reference_doctype'] = ['IN', document_types]
|
||||
if len(document_types):
|
||||
filters['reference_doctype'] = ['IN', document_types]
|
||||
|
||||
result = frappe.db.get_all('Patient Medical Record',
|
||||
fields=['name', 'owner', 'creation',
|
||||
|
Loading…
x
Reference in New Issue
Block a user