Merge pull request #31381 from barredterra/report-filters-from-route-options
feat: set report filters from route options
This commit is contained in:
commit
7cf7bf686f
1 changed files with 5 additions and 1 deletions
|
|
@ -30,7 +30,11 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView {
|
|||
this.report_doc = doc;
|
||||
this.report_doc.json = JSON.parse(this.report_doc.json);
|
||||
|
||||
this.filters = this.report_doc.json.filters;
|
||||
this.filters = [
|
||||
...this.report_doc.json.filters,
|
||||
...this.parse_filters_from_route_options(),
|
||||
];
|
||||
|
||||
this.order_by = this.report_doc.json.order_by;
|
||||
this.add_totals_row = this.report_doc.json.add_totals_row;
|
||||
this.page_title = __(this.report_name);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue