Merge pull request #7273 from deepeshgarg007/query_report_hotfix
fix: Refresh query report if route options are passed
This commit is contained in:
commit
820fb104fb
1 changed files with 6 additions and 0 deletions
|
|
@ -93,10 +93,16 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
this.toggle_nothing_to_show(true);
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.report_name !== frappe.get_route()[1]) {
|
||||
// this.toggle_loading(true);
|
||||
// different report
|
||||
this.load_report();
|
||||
}
|
||||
else if (frappe.route_options){
|
||||
// filters passed through routes
|
||||
// so refresh report again
|
||||
this.refresh_report();
|
||||
} else {
|
||||
// same report
|
||||
// don't do anything to preserve state
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue