Bugzilla – Attachment 119565 Details for
Bug 28118
Fix missing "selected" attribute in "Pickup at" dropdown
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 28118: Default to current branch when placing hold
Bug-28118-Default-to-current-branch-when-placing-h.patch (text/plain), 1.90 KB, created by
Tomás Cohen Arazi (tcohen)
on 2021-04-14 11:59:56 UTC
(
hide
)
Description:
Bug 28118: Default to current branch when placing hold
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2021-04-14 11:59:56 UTC
Size:
1.90 KB
patch
obsolete
>From 7d44937941e74f1c96b9c7fd47db6149a479012e Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 12 Apr 2021 16:01:03 -0300 >Subject: [PATCH] Bug 28118: Default to current branch when placing hold > >During bug 27071 development, this line got inadvertedly changed. This >patch restores the original behaviour. > >To test: >1. Search for a title >2. Go try place a hold >=> FAIL: Look at the HTML, there's no pickup location with >selected="selected" >3. Switch branch and repeat 2 >=> FAIL: Still the same >4. Apply this patch >5. Repeat 2 and 3 >=> SUCCESS: Branch is selected, chosen current branch is picked >6. Sign off :-D > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > reserve/request.pl | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > >diff --git a/reserve/request.pl b/reserve/request.pl >index dffe1da4364..a1f115a8bae 100755 >--- a/reserve/request.pl >+++ b/reserve/request.pl >@@ -67,7 +67,7 @@ my ( $template, $borrowernumber, $cookie, $flags ) = get_template_and_user( > ); > > my $showallitems = $input->param('showallitems'); >-my $pickup = $input->param('pickup'); >+my $pickup = $input->param('pickup') // C4::Context->userenv->{branch}; > > my $itemtypes = { map { $_->{itemtype} => $_ } @{ Koha::ItemTypes->search_with_localization->unblessed } }; > >@@ -551,7 +551,7 @@ foreach my $biblionumber (@biblionumbers) { > > $item->{'holdallowed'} = $branchitemrule->{'holdallowed'}; > >- my $reserves_control_branch = $pickup // C4::Reserves::GetReservesControlBranch( $item, $patron_unblessed ); >+ my $reserves_control_branch = C4::Reserves::GetReservesControlBranch( $item, $patron_unblessed ); > my $can_item_be_reserved = CanItemBeReserved( $patron->borrowernumber, $itemnumber, $reserves_control_branch )->{status}; > $item->{not_holdable} = $can_item_be_reserved unless ( $can_item_be_reserved eq 'OK' ); > >-- >2.31.1
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 28118
:
119469
|
119565
|
119602
|
119603
|
119605
|
119629
|
119630
|
119673
|
119674