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>
This commit is contained in:
parent
c46cefb7c5
commit
fc0cfd2937
|
|
@ -251,7 +251,7 @@
|
|||
</optgroup>
|
||||
<optgroup label="Groups">
|
||||
[% FOREACH lsg IN LibrarySearchGroups %]
|
||||
[% IF lsg.id == opac_name %]
|
||||
[% IF 'multibranchlimit-' _ lsg.id == opac_name %]
|
||||
<option selected="selected" value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
|
||||
[% ELSE %]
|
||||
<option value="multibranchlimit-[% lsg.id | html %]">[% lsg.title | html %]</option>
|
||||
|
|
|
|||
Loading…
Reference in New Issue