From 967a33d9a1ca669cb10c91aa4b84e7ff69fb70d9 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 13 Apr 2018 13:53:32 -0300 Subject: [PATCH] Bug 18791: Export visible columns only We certainly will want to improve that and explicitely list the columns to export. For instance the actions and checkboxes should not be exported, even if visible. Signed-off-by: Jonathan Druart --- .../prog/en/includes/columns_settings.inc | 15 +++++++++++++++ 1 file changed, 15 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 d2e86df60b..636cc5a562 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -25,22 +25,37 @@ function KohaTable(id_selector, dt_parameters, columns_settings, add_filters) { extend: 'colvis', columns: included_ids, text: _("Column visibility"), + exportOptions: { + columns: ':visible' + }, }, { extend: 'excelHtml5', text: _("Excel"), + exportOptions: { + columns: ':visible' + }, }, { extend: 'csvHtml5', text: _("CSV"), + exportOptions: { + columns: ':visible' + }, }, { extend: 'copyHtml5', text: _("Copy"), + exportOptions: { + columns: ':visible' + }, }, { extend: 'print', text: _("Print"), + exportOptions: { + columns: ':visible' + }, }, ]; -- 2.39.5