From ee81235021040c19c356a66edeec374bf5c2b1f2 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 30 Oct 2024 16:55:34 +0100 Subject: [PATCH] Bug 38304: Remove SaveState options for OPAC tables On /admin/columns_settings.pl you can select the two options related to SaveState for the OPAC tables, but those tables do not show the filters and column filters. Also the work on bug 33484 is not implemented at the OPAC Save configuration state on page change: Save search state on page change: We could remove those options for those tables to remove ambiguity. Test plan: Go the the table settings and open the "OPAC" tab. Notice that the options are no longer displayed (but they are still for the other tabs) Modify some settings Save and confirm the settings have been correctly saved. --- .../prog/en/modules/admin/columns_settings.tt | 38 ++++++++++--------- 1 file changed, 20 insertions(+), 18 deletions(-) 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 8bf0b32d448..171a27bc59e 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,25 +149,27 @@

[% END %] -

- [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %] - - [%- IF table_settings.default_save_state -%] - - [%- ELSE -%] - - [%- END -%] -

+ [% IF modulename != 'opac' %] +

+ [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state" %] + + [%- IF table_settings.default_save_state -%] + + [%- ELSE -%] + + [%- END -%] +

-

- [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state_search" %] - - [%- IF table_settings.default_save_state_search -%] - - [%- ELSE -%] - - [%- END -%] -

+

+ [% SET option_name = pagename _ "|" _ tablename _ "_default_save_state_search" %] + + [%- IF table_settings.default_save_state_search -%] + + [%- ELSE -%] + + [%- END -%] +

+ [% END %] [% END %] -- 2.34.1