Bugzilla – Attachment 57366 Details for
Bug 17591
Use fully qualified C4::Items function names in C4::Circulation
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17591: Use fully qualified C4::Items function names in C4::Reserves
Bug-17591-Use-fully-qualified-C4Items-function-nam.patch (text/plain), 1.71 KB, created by
Jonathan Druart
on 2016-11-09 10:11:44 UTC
(
hide
)
Description:
Bug 17591: Use fully qualified C4::Items function names in C4::Reserves
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-11-09 10:11:44 UTC
Size:
1.71 KB
patch
obsolete
>From ece1b8d7cb1ba3f6952c3c66c8dbd44f5d730a2d Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 9 Nov 2016 10:11:09 +0000 >Subject: [PATCH] Bug 17591: Use fully qualified C4::Items function names in > C4::Reserves > >--- > C4/Reserves.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/C4/Reserves.pm b/C4/Reserves.pm >index ae1c7b7..1225c3b 100644 >--- a/C4/Reserves.pm >+++ b/C4/Reserves.pm >@@ -429,7 +429,7 @@ See CanItemBeReserved() for possible return values. > sub CanBookBeReserved{ > my ($borrowernumber, $biblionumber) = @_; > >- my $items = GetItemnumbersForBiblio($biblionumber); >+ my $items = C4::Items::GetItemnumbersForBiblio($biblionumber); > #get items linked via host records > my @hostitems = get_hostitemnumbers_of($biblionumber); > if (@hostitems){ >@@ -468,7 +468,7 @@ sub CanItemBeReserved { > > # we retrieve borrowers and items informations # > # item->{itype} will come for biblioitems if necessery >- my $item = GetItem($itemnumber); >+ my $item = C4::Items::GetItem($itemnumber); > my $biblioData = C4::Biblio::GetBiblioData( $item->{biblionumber} ); > my $borrower = C4::Members::GetMember( 'borrowernumber' => $borrowernumber ); > >@@ -652,7 +652,7 @@ sub GetOtherReserves { > my $nextreservinfo; > my ( undef, $checkreserves, undef ) = CheckReserves($itemnumber); > if ($checkreserves) { >- my $iteminfo = GetItem($itemnumber); >+ my $iteminfo = C4::Items::GetItem($itemnumber); > if ( $iteminfo->{'holdingbranch'} ne $checkreserves->{'branchcode'} ) { > $messages->{'transfert'} = $checkreserves->{'branchcode'}; > #minus priorities of others reservs >-- >2.1.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 17591
:
57344
|
57350
| 57366