Bug 21904: Hide libraries outside of the group in the header
Fix typo To test: 1 - Create a library group with two libraries 2 - Enable hiding patron info for that group 3 - Find or create a patron at one of those libraries without view_borrower_infos_from_any_libraries permission (but with staff side permission) 4 - Sign in as that staff person 5 - Click 'Patrons' 6 - Click the [+] to expand search options 7 - Set the 'Library' dropdown to a library outside of the group 8 - Search Signed-off-by: Nazlı Çetin <nazli@devinim.com.tr> Signed-off-by: Josef Moravec <josef.moravec@gmail.com> Signed-off-by: Nick Clemens <nick@bywatersolutions.com> (cherry picked from commitb225ffc559) Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com> (cherry picked from commit57bfc4a8ea) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
This commit is contained in:
parent
a07329c9da
commit
49f2699d34
|
|
@ -85,18 +85,12 @@
|
|||
|
||||
<p>
|
||||
<label for="branchcode">Library: </label>
|
||||
[% SET branches = Branches.all( selected => branchcode_filter, only_my_group => 1 ) %]
|
||||
[% SET branches = Branches.all( selected => branchcode_filter, only_from_group => 1 ) %]
|
||||
<select name="branchcode_filter" id="branchcode">
|
||||
[% IF branches.size != 1 %]
|
||||
<option value="">Any</option>
|
||||
[% END %]
|
||||
[% FOREACH b IN branches %]
|
||||
[% IF b.selected %]
|
||||
<option value="[% b.branchcode %]" selected="selected">[% b.branchname %]</option>
|
||||
[% ELSE %]
|
||||
<option value="[% b.branchcode %]">[% b.branchname |html %]</option>
|
||||
[% END %]
|
||||
[% END %]
|
||||
[% PROCESS options_for_libraries libraries => branches %]
|
||||
</select>
|
||||
</p>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue