fix: include filters only if checked
This commit is contained in:
parent
96a0f8246c
commit
27f2f49c56
2 changed files with 3 additions and 3 deletions
|
|
@ -3,7 +3,7 @@
|
|||
<h2>{{ __(title) }}</h2>
|
||||
<hr>
|
||||
{% endif %}
|
||||
{% if subtitle && print_settings.include_filters %}
|
||||
{% if subtitle %}
|
||||
{{ subtitle }}
|
||||
<hr>
|
||||
{% endif %}
|
||||
|
|
|
|||
|
|
@ -1495,7 +1495,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
frappe.render_grid({
|
||||
template: print_settings.columns ? "print_grid" : custom_format,
|
||||
title: __(this.report_name),
|
||||
subtitle: filters_html,
|
||||
subtitle: print_settings?.include_filters ? filters_html : null,
|
||||
print_settings: print_settings,
|
||||
landscape: landscape,
|
||||
filters: this.get_filter_values(),
|
||||
|
|
@ -1525,7 +1525,7 @@ frappe.views.QueryReport = class QueryReport extends frappe.views.BaseList {
|
|||
const template = print_settings.columns || !custom_format ? "print_grid" : custom_format;
|
||||
const content = frappe.render_template(template, {
|
||||
title: __(this.report_name),
|
||||
subtitle: filters_html,
|
||||
subtitle: print_settings?.include_filters ? filters_html : null,
|
||||
filters: applied_filters,
|
||||
data: data,
|
||||
original_data: this.data,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue