Browse Source

Fixed List view 'order by' based on creation, if filtered based in child table (#3250)

version-14
Nabin Hait 8 years ago
committed by Rushabh Mehta
parent
commit
6b2f842338
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      frappe/public/js/frappe/list/list_view.js

+ 2
- 1
frappe/public/js/frappe/list/list_view.js View File

@@ -555,7 +555,8 @@ frappe.views.ListView = frappe.ui.BaseList.extend({
var order_by = '';
if(this.sort_selector) {
// get order_by from sort_selector
order_by = this.sort_selector.sort_by + ' ' + this.sort_selector.sort_order;
order_by = $.format('`tab{0}`.`{1}` {2}',
[this.doctype, this.sort_selector.sort_by, this.sort_selector.sort_order]);
} else {
order_by = this.list_renderer.order_by;
}


Loading…
Cancel
Save