Bug 33198: Don't calculate pickup locations per bib unless placing multiple holds
For single bibs we use an ajax select2 dropdown, and we don't use this value To test: 1 - Place some holds on single bibs 2 - Confirm dropdowns for pickup location work as expected 3 - Do the same for multiple bibs selected from search results 4 - Apply patch 5 - Confirm there is no change after the patch Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org> Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> (cherry picked from commit63772a9cb2) Signed-off-by: Matt Blenkinsop <matt.blenkinsop@ptfs-europe.com> (cherry picked from commitdd7b6e528a) Signed-off-by: Lucas Gass <lucas@bywatersolutions.com> (cherry picked from commitd98074a747) Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
This commit is contained in:
parent
b3b187b576
commit
5402be60e2
|
|
@ -768,7 +768,7 @@ if ( ( $findborrower && $borrowernumber_hold || $findclub && $club_hold )
|
|||
$template->param( reserveloop => \@reserveloop );
|
||||
}
|
||||
|
||||
if ( $patron ) {
|
||||
if ( $patron && $multi_hold ) {
|
||||
# Add the valid pickup locations
|
||||
my @pickup_locations = $biblio->pickup_locations({ patron => $patron })->as_list;
|
||||
$biblioloopiter{pickup_locations} = \@pickup_locations;
|
||||
|
|
|
|||
Loading…
Reference in New Issue