From 386eb52ebcea6de39b83baafe061f6507c66eb2e 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=utf8 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 Signed-off-by: Jonathan Druart (cherry picked from commit 62848497033c601ea928890f903acf32c72d08d2) Signed-off-by: Fridolin Somers (cherry picked from commit 9a2c770c7e9d0020b787ecff8f81906ddd751d3b) Signed-off-by: Andrew Fuerste-Henry --- .../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 6cdbfd8f65..2f001cc0a4 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.39.5