From 865c6fef23aacfc5834c6d705d1ff85078db2fc5 Mon Sep 17 00:00:00 2001 From: Owen Leonard Date: Mon, 24 Sep 2018 13:37:16 +0000 Subject: [PATCH] Bug 21216: (follow-up) Exclude some columns from export This patch adds a custom buttons configuration to the Notices table so that columns with form controls are not included in copy/print/export operations. The DataTables columns settings include file has been modified to check for an existing buttons export columns configuration before applying the default. To test, apply the patch and clear your browser cache if necessary. Go to Tools -> Notices & slips. The table of notices should have a DataTables toolbar with a filter form, column visibility, and export buttons. Test the functionality of all these tools. Only the first four columns of the table should be included in printouts and exported files. --- .../prog/en/includes/columns_settings.inc | 19 +++++++++++++------ koha-tmpl/intranet-tmpl/prog/js/letter.js | 3 ++- 2 files changed, 15 insertions(+), 7 deletions(-) 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 636cc5a..7aa51cd 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -1,6 +1,6 @@ [% USE ColumnsSettings %] -