mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-24 15:39:20 +00:00
fix: feed not visible when filter is reset
This commit is contained in:
@@ -14,7 +14,8 @@ def get_feed(name, document_types=None, start=0, page_length=20):
|
|||||||
filters = {'patient': name}
|
filters = {'patient': name}
|
||||||
if document_types:
|
if document_types:
|
||||||
document_types = json.loads(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',
|
result = frappe.db.get_all('Patient Medical Record',
|
||||||
fields=['name', 'owner', 'creation',
|
fields=['name', 'owner', 'creation',
|
||||||
|
|||||||
Reference in New Issue
Block a user