Bug 28004: Fix breadcrumbs on authorised_values.tt

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 <amitddng135@gmail.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 6284849703)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
(cherry picked from commit 9a2c770c7e)

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
This commit is contained in:
Lucas Gass 2021-03-23 23:08:51 +00:00 committed by Andrew Fuerste-Henry
parent 94dc265edc
commit 386eb52ebc
1 changed files with 2 additions and 2 deletions

View File

@ -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 ) %]
<a href="/cgi-bin/koha/admin/authorised_values.pl">Authorized values</a> &rsaquo;
Authorized values for category [% category_name | html %]
Authorized values for category [% category.category_name | html %]
[% ELSE %]
Authorized values
[% END %]