Merge pull request #6887 from sunnyakaxd/patch-3
fix: remove distinct from count
This commit is contained in:
commit
9b35a090c3
1 changed files with 1 additions and 1 deletions
|
|
@ -597,7 +597,7 @@ frappe.views.ListView = class ListView extends frappe.views.BaseList {
|
|||
args: {
|
||||
doctype: this.doctype,
|
||||
filters: this.get_filters_for_args(),
|
||||
fields: [`count(distinct ${frappe.model.get_full_column_name('name', this.doctype)}) as total_count`],
|
||||
fields: [`count(${frappe.model.get_full_column_name('name', this.doctype)}) as total_count`],
|
||||
}
|
||||
}).then(r => {
|
||||
this.total_count = r.message.values[0][0] || current_count;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue