From d5f1c82ee1281106b3be0b288ac5d38ce7301f7a Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Wed, 8 Nov 2023 11:32:49 -0100 Subject: [PATCH] Bug 35287: Admin ERM licenses is now a table option in the additional fields admin panel ERM licenses allows for the 'searchable' option (as well as 'repeatable') --- .../intranet-tmpl/prog/en/modules/admin/additional-fields.tt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt index 23a939e1f7..0bfed1210d 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/additional-fields.tt @@ -23,7 +23,7 @@ [% marcfield_tables = ['subscription', 'aqorders'] %] -[% searchable_tables = ['subscription', 'aqbasket', 'aqinvoices'] %] +[% searchable_tables = ['subscription', 'aqbasket', 'aqinvoices', 'erm_licenses'] %] [% show_marcfield = marcfield_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %] [% show_searchable = searchable_tables.grep('^' _ tablename _ '$').size ? 1 : 0 %] @@ -134,6 +134,9 @@ [% WRAPPER table_option value="accountlines:credit" %]Account lines (credit)[% END %] [% WRAPPER table_option value="accountlines:debit" %]Account lines (debit)[% END %] [% END %] + [% IF CAN_user_erm %] + [% WRAPPER table_option value="erm_licenses" %]ERM Licenses[% END %] + [% END %] [% ELSE %] Additional permissions are required for editing additional fields -- 2.30.2