fix: Order by param in report builder (#6877)
This commit is contained in:
parent
9873c04231
commit
94cd6ce59b
1 changed files with 2 additions and 0 deletions
|
|
@ -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'
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue