Merge pull request #2793 from mbauskar/hotfix
[minor] filter dashboard fixes
This commit is contained in:
commit
16e437db7d
2 changed files with 2 additions and 2 deletions
|
|
@ -413,7 +413,7 @@ frappe.ui.Listing = Class.extend({
|
|||
query += ' LIMIT ' + this.start + ',' + (this.page_length+1);
|
||||
return query
|
||||
},
|
||||
set_filter: function(parent, fieldname, label, no_run, no_duplicate) {
|
||||
set_filter: function(fieldname, label, no_run, no_duplicate, parent) {
|
||||
var filter = this.filter_list.get_filter(fieldname);
|
||||
doctype = parent && this.doctype != parent? parent: this.doctype
|
||||
|
||||
|
|
|
|||
|
|
@ -350,7 +350,7 @@ frappe.views.ReportView = frappe.ui.Listing.extend({
|
|||
});
|
||||
|
||||
if(!filter_set) {
|
||||
this.set_filter(parent, fieldname, value);
|
||||
this.set_filter(fieldname, value, false, false, parent);
|
||||
} else {
|
||||
var df = frappe.meta.get_docfield(parent, fieldname);
|
||||
if(df.fieldtype==='Link') {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue