mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-13 10:11:20 +00:00
[fix] company listing context
This commit is contained in:
@@ -135,7 +135,7 @@ def get_details(hub_sync_id=None, doctype='Hub Item'):
|
||||
connection = get_client_connection()
|
||||
details = connection.get_doc(doctype, hub_sync_id)
|
||||
reviews = details.get('reviews')
|
||||
if len(reviews):
|
||||
if reviews and len(reviews):
|
||||
for r in reviews:
|
||||
r.setdefault('pretty_date', frappe.utils.pretty_date(r.get('modified')))
|
||||
details.setdefault('reviews', reviews)
|
||||
|
||||
Reference in New Issue
Block a user