Bugzilla – Attachment 25945 Details for
Bug 10827
List of holds does not update correctly
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 10827: Update item-level holds if deletion
Bug-10827-Update-item-level-holds-if-deletion.patch (text/plain), 1.14 KB, created by
Kyle M Hall (khall)
on 2014-03-07 17:07:57 UTC
(
hide
)
Description:
Bug 10827: Update item-level holds if deletion
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2014-03-07 17:07:57 UTC
Size:
1.14 KB
patch
obsolete
>From 1e913093490d43a34765c6640bef9ec2d7fddeee Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@biblibre.com> >Date: Mon, 20 Jan 2014 17:22:37 +0100 >Subject: [PATCH] Bug 10827: Update item-level holds if deletion > >If a lower level priority hold is deleted, the next on the list should >be marked as 'waiting' and the patron notified. > >This patch only affects item-level holds. > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Reserves.pm | 6 ++++++ > 1 files changed, 6 insertions(+), 0 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index dde5ee7..4ab47de 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -1744,6 +1744,12 @@ sub _FixPriority { > $j + 1, > $priority[$j]->{'reserve_id'} > ); >+ if ( $j == 0 ) { >+ my $res = GetReserve( $priority[$j]->{'reserve_id'} ); >+ if ( $res->{itemnumber} ) { >+ ModReserveAffect({ itemnumber => $res->{itemnumber}, borrowernumber => $res->{borrowernumber} }); >+ } >+ } > } > > $sth = $dbh->prepare( "SELECT reserve_id FROM reserves WHERE lowestPriority = 1 ORDER BY priority" ); >-- >1.7.2.5
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 10827
:
24551
|
24581
|
24582
|
24583
|
24584
|
24585
|
25942
|
25943
|
25944
|
25945
|
25946
|
36811
|
36812
|
36813
|
36814
|
36815