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 <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Jonathan Druart 2024-10-31 09:41:39 +01:00 committed by Katrin Fischer
parent bdb81212ad
commit 9f4ead89b8
No known key found for this signature in database
GPG Key ID: 0EF6E2C03357A834
2 changed files with 4 additions and 2 deletions

View File

@ -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,

View File

@ -149,7 +149,8 @@
</p>
[% END %]
[% IF modulename != 'opac' %]
[%# No other exceptions should be added here! %]
[% IF modulename != 'opac' && pagename != 'itemsearch' %]
<p>
[% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %]
<label for="[% option_name | html %]" title="Save the column visibility, length of the table and order in session">Save configuration state on page change:</label>