Bugzilla – Attachment 24584 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.07 KB, created by
Jonathan Druart
on 2014-01-20 16:25:32 UTC
(
hide
)
Description:
Bug 10827: Update item-level holds if deletion
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2014-01-20 16:25:32 UTC
Size:
1.07 KB
patch
obsolete
>From 10e42501e17bc131d2eab68c3f6be00e1df48be7 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. >--- > C4/Reserves.pm | 6 ++++++ > 1 file changed, 6 insertions(+) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index 8a9173f..ed495c3 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -1731,6 +1731,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.10.4
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