Bug 28845: Match against the full limit string, not just the group id
authorNick Clemens <nick@bywatersolutions.com>
Wed, 11 Aug 2021 15:30:36 +0000 (15:30 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 1 Oct 2021 17:31:54 +0000 (13:31 -0400)
commitfc0cfd29377df00951c7c8da0caf472bb1fbee26
treefd641d791f58a972ccf2181fe93c3eb8db25de38
parentc46cefb7c505e31bf3c0683f1f5ce3e08a1cd6f4
Bug 28845: Match against the full limit string, not just the group id

To test:
1 - Add to OPAC virtual host in apache conf:
   SetEnv OPAC_SEARCH_LIMIT branch:multibranch-1
   SetEnv OPAC_LIMIT_OVERRIDE 1
   RequestHeader add X-Koha-SetEnv "OPAC_SEARCH_LIMIT branch:multibranchlimit-1"
   RequestHeader add X-Koha-SetEnv "OPAC_LIMIT_OVERRIDE 1"
2 - Enable system preference OpacAddMastheadLibraryPulldown
3 - Create a library group enabled as OPAC search group (or make sure existing group 1 is an OPAC search group)
4 - Load the opac - dropdown does not pree-select the search group
5 - Apply patch
6 - Relaod opac - group is pre-selected!

Signed-off-by: Andrew Fuerste-Henry <andrew@bywatersolutions.com>
Signed-off-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
koha-tmpl/opac-tmpl/bootstrap/en/includes/masthead.inc