From 42d5a879e939b08cbd7ff9098853f15535a188e3 Mon Sep 17 00:00:00 2001 From: Lucas Gass Date: Tue, 23 Mar 2021 23:08:51 +0000 Subject: [PATCH] Bug 28004: Fix breadcrumbs on authorised_values.tt MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit To Test: - go to a category with at least one value, see the complete breadcrumb "Home › Administration › Authorized values › Authorized values for category" with link on the 3 first menus - create a new category / go to an empty category ; see the incomplete breadcrumb "Home › Administration › Authorized values" with link only on the 2 first menus - Apply patch - go to category with at least one value, breadcrumbs should look like Home › Administration › Authorized values › Authorized values for category CATEGORY - got to category with no values, breadcrumbs should look the same as category with values Signed-off-by: Amit Gupta Signed-off-by: Martin Renvoize --- .../intranet-tmpl/prog/en/modules/admin/authorised_values.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt index bac32901d2..913e8217ef 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/authorised_values.tt @@ -30,9 +30,9 @@ [% IF ( action_modify ) %]Modify authorized value[% END %] [% IF ( action_add_value ) %]New authorized value[% END %] [% IF ( action_add_category ) %]New category[% END %] - [% ELSIF ( loop ) %] + [% ELSIF ( loop || searchfield ) %] Authorized values › - Authorized values for category [% category_name | html %] + Authorized values for category [% category.category_name | html %] [% ELSE %] Authorized values [% END %] -- 2.20.1