diff --git a/frappe/public/js/frappe/views/reports/report_view.js b/frappe/public/js/frappe/views/reports/report_view.js index 9cb10aba87..5aedbb70da 100644 --- a/frappe/public/js/frappe/views/reports/report_view.js +++ b/frappe/public/js/frappe/views/reports/report_view.js @@ -1553,12 +1553,22 @@ frappe.views.ReportView = class ReportView extends frappe.views.ListView { const selected_items = this.get_checked_items(true); let extra_fields = null; - if (this.total_count > (this.count_without_children || args.page_length)) { + if (this.list_view_settings.disable_count) { extra_fields = [ { fieldtype: "Check", fieldname: "export_all_rows", - label: __("Export All {0} rows?", [`${this.total_count}`]), + label: __("Export all matching rows?"), + }, + ]; + } else if ( + this.total_count > (this.count_without_children || args.page_length) + ) { + extra_fields = [ + { + fieldtype: "Check", + fieldname: "export_all_rows", + label: __("Export all {0} rows?", [`${this.total_count}`]), }, ]; }