fix: Order by param in report builder (#6877)

This commit is contained in:
Nabin Hait 2019-02-02 22:07:12 +05:30 committed by Faris Ansari
parent 9873c04231
commit 94cd6ce59b

View file

@ -150,6 +150,8 @@ class Report(Document):
if params.get('sort_by'):
order_by = _format(params.get('sort_by').split('.')) + ' ' + params.get('sort_order')
elif params.get('order_by'):
order_by = params.get('order_by')
else:
order_by = _format([self.ref_doctype, 'modified']) + ' desc'