From 37b9a058f6f8011764e7e006f196b6c1b9522dd1 Mon Sep 17 00:00:00 2001
From: Owen Leonard <oleonard@myacpl.org>
Date: Wed, 28 Aug 2024 14:21:52 +0000
Subject: [PATCH] Bug 37759: Duplicated "Set library" menu item caused by bad
 merge

This patch removes an unnecessary block of markup accidentally left
behind during a rebase of Bug 35402, removing a duplicate "Set
library..." menu item from the header menu in the staff interface.

After the batch, users who have permission to change their logged-in
library should see only a single "Set library..." menu item in the user
menu found on the right-hand side of the header menu.
---
 koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)

diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
index d65a3dcae2..0bc5b87ecc 100644
--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc
@@ -198,18 +198,7 @@
                                 </li>
 
                                 <li id="setlibrary_panel" style="display:none"></li>
-                                <li>
-                                <li>
-                                    [% IF Koha.Preference('UseCirculationDesks') && Koha.Preference('UseCashRegisters') %]
-                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library, desk and register</a>
-                                    [% ELSIF Koha.Preference('UseCirculationDesks') %]
-                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library and desk</a>
-                                    [% ELSIF Koha.Preference('UseCashRegisters') %]
-                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library and cash register</a>
-                                    [% ELSE %]
-                                        <a class="dropdown-item" href="/cgi-bin/koha/circ/set-library.pl">Set library</a>
-                                    [% END %]
-                                </li>
+
                             [% ELSIF Koha.Preference('UseCirculationDesks') && Koha.Preference('UseCashRegisters') %]
                                 <li><hr class="dropdown-divider"></li>
                                 <li>
-- 
2.39.2