Explorar el Código

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

version-14
Nabin Hait hace 8 años
committed by Rushabh Mehta
padre
commit
6b2f842338
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. +2
    -1
      frappe/public/js/frappe/list/list_view.js

+ 2
- 1
frappe/public/js/frappe/list/list_view.js Ver fichero

@@ -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;
}


Cargando…
Cancelar
Guardar