Bugzilla – Attachment 75211 Details for
Bug 20724
ReservesNeedReturns syspref breaks "Holds awaiting pickup"
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20724: Try to fix ReservesNeedReturns wrong behaviour
Bug-20724-Try-to-fix-ReservesNeedReturns-wrong-beh.patch (text/plain), 1.92 KB, created by
Jonathan Druart
on 2018-05-09 17:32:05 UTC
(
hide
)
Description:
Bug 20724: Try to fix ReservesNeedReturns wrong behaviour
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-05-09 17:32:05 UTC
Size:
1.92 KB
patch
obsolete
>From ad64661377c9cb3016b865b84e0a359ade52953e Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 9 May 2018 14:30:13 -0300 >Subject: [PATCH] Bug 20724: Try to fix ReservesNeedReturns wrong behaviour > >We need to call Koha::Hold->set_waiting to correctly calculate the >expiration date. > >It fixes a regression introduced by > commit 26634151dbce0bf39ff6c9eda5b58bb993996a2d > Bug 12063 - Fix QA failures > >The expiration date has to be set for waiting holds > >TODO: same fix has to be provided for the OPAC side >TODO LATER: We certainly should move code from controllers to >Koha::Hold >--- > reserve/placerequest.pl | 6 ++++-- > 1 file changed, 4 insertions(+), 2 deletions(-) > >diff --git a/reserve/placerequest.pl b/reserve/placerequest.pl >index 3c55656380..5ff3b11cbd 100755 >--- a/reserve/placerequest.pl >+++ b/reserve/placerequest.pl >@@ -107,14 +107,16 @@ if ( $type eq 'str8' && $borrower ) { > > if ($multi_hold) { > my $bibinfo = $bibinfos{$biblionumber}; >- AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber], >+ my $hold_id = AddReserve($branch,$borrower->{'borrowernumber'},$biblionumber,[$biblionumber], > $bibinfo->{rank},$startdate,$expirationdate,$notes,$bibinfo->{title},$checkitem,$found); >+ Koha::Holds->find( $hold_id )->set_waiting if $found eq 'W'; > } else { > # place a request on 1st available > for ( my $i = 0 ; $i < $holds_to_place_count ; $i++ ) { >- AddReserve( $branch, $borrower->{'borrowernumber'}, >+ my $hold_id = AddReserve( $branch, $borrower->{'borrowernumber'}, > $biblionumber, \@realbi, $rank[0], $startdate, $expirationdate, $notes, $title, > $checkitem, $found, $itemtype ); >+ Koha::Holds->find( $hold_id )->set_waiting if $found eq 'W'; > } > } > } >-- >2.11.0
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 20724
:
75211
|
75219
|
75221
|
75222
|
75223
|
75307
|
75308
|
75309
|
75325
|
75363
|
75364
|
75365
|
75366
|
75367