From 27ff36825dd6ac8f87dc7d380c60f21e8170dea6 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Sat, 18 Jul 2020 10:24:23 +0000 Subject: [PATCH] Bug 25919: Only show Desks in admin navigation when UseCirculationDesks is used We were missing a check for the UseCirculationDesks in the template so the "Desks" link would only appear in the admin navigation when the pref feature is activated. To test: - Turn off UseCirculationDesks - Go to any administration page that shows the navigation on the left - Verify Desks shows - Apply patch - Reload the admin page - Desks should be gone - Turn on UseCirculationDesks - Verify the Desks reappear Signed-off-by: Sally Signed-off-by: Nick Clemens Signed-off-by: Jonathan Druart --- koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc index 13b685dafc..8f95f3ee05 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc @@ -16,7 +16,9 @@ [% IF ( CAN_user_parameters_manage_libraries ) %]
  • Libraries
  • Library groups
  • -
  • Desks
  • + [% IF ( Koha.Preference('UseCirculationDesks') ) %] +
  • Desks
  • + [% END %] [% END %] [% IF ( CAN_user_parameters_manage_itemtypes ) %]
  • Item types
  • -- 2.39.5