From cab1d5d83047aae844ddad00b6e023092ef9387b Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 31 Oct 2024 09:41:39 +0100 Subject: [PATCH] Bug 37238: Add exception for itemsearch Item search has its own way to share the link, we should not deal with the state (and the work from bug 33484) on this page. It will certainly need to be adjusted to work like the other tables, but it's something for later. Signed-off-by: Jonathan Druart Signed-off-by: Martin Renvoize --- koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc | 3 ++- .../intranet-tmpl/prog/en/modules/admin/columns_settings.tt | 3 ++- 2 files changed, 4 insertions(+), 2 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 46411008b07..d64806b26a5 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/columns_settings.inc @@ -215,7 +215,8 @@ function KohaTable(id_selector, dt_parameters, table_settings, add_filters) { } ); - if ( table_settings ) { + /* No other exceptions should be added here! */ + if ( table_settings && table_settings.page != 'itemsearch' ) { dt_parameters["buttons"].push( { autoClose: true, diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt index 171a27bc59e..a3f45c22f9e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/columns_settings.tt @@ -149,7 +149,8 @@

[% END %] - [% IF modulename != 'opac' %] + [%# No other exceptions should be added here! %] + [% IF modulename != 'opac' && pagename != 'itemsearch' %]

[% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %] -- 2.47.0