Bugzilla – Attachment 143813 Details for
Bug 31447
"Please confirm checkout" message uses patron's home library not holds pick up library
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 31447: Use holds pick up branch in "Please confirm checkout" message
Bug-31447-Use-holds-pick-up-branch-in-Please-confi.patch (text/plain), 3.15 KB, created by
Katrin Fischer
on 2022-11-13 14:41:45 UTC
(
hide
)
Description:
Bug 31447: Use holds pick up branch in "Please confirm checkout" message
Filename:
MIME Type:
Creator:
Katrin Fischer
Created:
2022-11-13 14:41:45 UTC
Size:
3.15 KB
patch
obsolete
>From 6322486610d4aa7aae511218b21299e64bf1407f Mon Sep 17 00:00:00 2001 >From: Emmi Takkinen <emmi.takkinen@koha-suomi.fi> >Date: Tue, 23 Aug 2022 13:48:39 +0300 >Subject: [PATCH] Bug 31447: Use holds pick up branch in "Please confirm > checkout" message > >When one tries to check out item which has hold in it, >"Please confirm checkout" message uses patrons home library >instead of holds pick up library. It would be more logical >to use latter here. > >To test: >1. Find record with holds. >2. For first priority hold, change it's pick up library to differ from patrons homebranch if needed. >3. Check out records item for a different patron. >=> Note that notice reads: "Item ... has been on hold for ... at [patrons homebranch] since ...". >4. Apply this patch. >5. Repeat steps 2 and 3. >=> Notice should now read: "Item ... has been on hold for ... at [holds pick up branch] since ...". > >Sponsored-by: Koha-Suomi Oy > >Signed-off-by: Axelle Clarisse <axelle.clarisse@univ-amu.fr> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> > >Signed-off-by: David Nind <david@davidnind.com> > >Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> >--- > C4/Circulation.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index aa858a855b..336ce9490a 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1191,7 +1191,7 @@ sub CanBookBeIssued { > $needsconfirmation{'ressurname'} = $patron->surname; > $needsconfirmation{'rescardnumber'} = $patron->cardnumber; > $needsconfirmation{'resborrowernumber'} = $patron->borrowernumber; >- $needsconfirmation{'resbranchcode'} = $patron->branchcode; >+ $needsconfirmation{'resbranchcode'} = $res->{branchcode}; > $needsconfirmation{'resreservedate'} = $res->{reservedate}; > $needsconfirmation{'reserve_id'} = $res->{reserve_id}; > } >@@ -1202,7 +1202,7 @@ sub CanBookBeIssued { > $needsconfirmation{'ressurname'} = $patron->surname; > $needsconfirmation{'rescardnumber'} = $patron->cardnumber; > $needsconfirmation{'resborrowernumber'} = $patron->borrowernumber; >- $needsconfirmation{'resbranchcode'} = $patron->branchcode; >+ $needsconfirmation{'resbranchcode'} = $res->{branchcode}; > $needsconfirmation{'resreservedate'} = $res->{reservedate}; > $needsconfirmation{'reserve_id'} = $res->{reserve_id}; > } >@@ -1213,7 +1213,7 @@ sub CanBookBeIssued { > $needsconfirmation{'ressurname'} = $patron->surname; > $needsconfirmation{'rescardnumber'} = $patron->cardnumber; > $needsconfirmation{'resborrowernumber'} = $patron->borrowernumber; >- $needsconfirmation{'resbranchcode'} = $patron->branchcode; >+ $needsconfirmation{'resbranchcode'} = $res->{branchcode}; > $needsconfirmation{'resreservedate'} = $res->{reservedate}; > $needsconfirmation{'reserve_id'} = $res->{reserve_id}; > } >-- >2.30.2
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 31447
:
140000
|
140338
|
141292
|
143112
|
143349
|
143386
|
143776
|
143777
| 143813 |
143814
|
144241