From 4b342dda81957d42fe91c0308e5b3d4580bbd32e Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Mon, 8 Feb 2021 12:48:53 +0000 Subject: [PATCH] Bug 27653: Set messageTop to null for KohaTables This patch sets messageTop to null for KohaTables. This prevents the filter row from being included in an export. To test: 1 - Browse to acquisitions home 2 - Click Export->Copy 3 - Paste the data to a text editor 4 - Click Export->Print 5 - Note the 'Expand all...' row is included in both of the above 6 - Apply patch 7 - Repeat 8 - The row is gone from both copy and print --- koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc index 9a5eb315f5..98e7fd072e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -61,6 +61,7 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { { extend: 'copyHtml5', text: _("Copy"), + messageTop: null, exportOptions: { columns: exportColumns, format: export_format @@ -69,6 +70,7 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { { extend: 'print', text: _("Print"), + messageTop: null, exportOptions: { columns: exportColumns, format: export_format -- 2.11.0