Bugzilla – Attachment 45047 Details for
Bug 14598
itemtype is not set on statistics by C4::Circulation::AddReturn
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14598 [QA Followup] - Only fetch bib data if needed
Bug-14598-QA-Followup---Only-fetch-bib-data-if-nee.patch (text/plain), 1.19 KB, created by
Kyle M Hall (khall)
on 2015-11-20 14:24:30 UTC
(
hide
)
Description:
Bug 14598 [QA Followup] - Only fetch bib data if needed
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2015-11-20 14:24:30 UTC
Size:
1.19 KB
patch
obsolete
>From 86dfb6f46274f7b107139636b94c95b81428fc87 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Fri, 20 Nov 2015 14:23:22 +0000 >Subject: [PATCH] Bug 14598 [QA Followup] - Only fetch bib data if needed > >Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com> >--- > C4/Circulation.pm | 8 ++++---- > 1 file changed, 4 insertions(+), 4 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 743db89..ab811d7 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -1812,10 +1812,10 @@ sub AddReturn { > } > > my $itemnumber = $item->{ itemnumber }; >- my $biblio = GetBiblioData( $item->{ biblionumber } ); >- my $itemtype = ( C4::Context->preference("item-level_itypes") ) >- ? $item->{ itype } >- : $biblio->{ itemtype }; >+ >+ my $item_level_itypes = C4::Context->preference("item-level_itypes"); >+ my $biblio = $item_level_itypes ? undef : GetBiblioData( $item->{ biblionumber } ); # don't get bib data unless we need it >+ my $itemtype = $item_level_itypes ? $item->{itype} : $biblio->{itemtype}; > > my $issue = GetItemIssue($itemnumber); > if ($issue and $issue->{borrowernumber}) { >-- >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 14598
:
41198
|
41199
|
41200
|
41201
|
41202
|
41203
|
41204
|
41205
|
41383
|
41384
|
41385
|
41627
|
41628
|
41629
|
41637
|
42171
|
42177
|
44665
|
44666
|
44667
|
44668
|
45030
|
45047
|
45838
|
45843
|
45844
|
46546
|
46877
|
47108
|
47109
|
47110
|
47111
|
47112
|
47113
|
47114
|
47115
|
47116
|
49797
|
49798
|
49799
|
49800
|
49801
|
49802
|
49803
|
49804
|
49805
|
49807
|
49963
|
49964
|
49965
|
49966
|
49967
|
49968
|
49969
|
49970
|
49971
|
49972
|
49978
|
49979
|
49980
|
49981
|
49982
|
49983
|
49984
|
49985
|
49986
|
49987
|
49988
|
50018
|
56941
|
56942
|
56943
|
56944
|
56945
|
56946
|
56947
|
56948
|
56949
|
56950
|
56951
|
56952
|
56953
|
62539
|
62555
|
62682