Bug 25919: Only show Desks in admin navigation when UseCirculationDesks is used
authorKatrin Fischer <katrin.fischer.83@web.de>
Sat, 18 Jul 2020 10:24:23 +0000 (10:24 +0000)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 7 Aug 2020 14:54:40 +0000 (16:54 +0200)
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 <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc

index 13b685d..8f95f3e 100644 (file)
@@ -16,7 +16,9 @@
             [% IF ( CAN_user_parameters_manage_libraries ) %]
                 <li><a href="/cgi-bin/koha/admin/branches.pl">Libraries</a></li>
                 <li><a href="/cgi-bin/koha/admin/library_groups.pl">Library groups</a></li>
-                <li><a href="/cgi-bin/koha/admin/desks.pl">Desks</a></li>
+                [% IF ( Koha.Preference('UseCirculationDesks') ) %]
+                    <li><a href="/cgi-bin/koha/admin/desks.pl">Desks</a></li>
+                [% END %]
             [% END %]
             [% IF ( CAN_user_parameters_manage_itemtypes ) %]
                 <li><a href="/cgi-bin/koha/admin/itemtypes.pl">Item types</a></li>