Bugzilla – Attachment 64975 Details for
Bug 18276
Koha::Biblio - Remove GetBiblioFromItemNumber
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 18276: (follow-up) Remove GetBiblioFromItemNumber - Easy ones
Bug-18276-follow-up-Remove-GetBiblioFromItemNumber.patch (text/plain), 2.02 KB, created by
Jonathan Druart
on 2017-07-10 16:04:16 UTC
(
hide
)
Description:
Bug 18276: (follow-up) Remove GetBiblioFromItemNumber - Easy ones
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2017-07-10 16:04:16 UTC
Size:
2.02 KB
patch
obsolete
>From 9a3dfd117d1fdaacc2c72b2be26518bf6bc7a2b4 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Mon, 10 Jul 2017 12:54:35 -0300 >Subject: [PATCH] Bug 18276: (follow-up) Remove GetBiblioFromItemNumber - Easy > ones > >- Item does not have a title attribute, it comes from biblio >- There is an additional call to effective_itemtype done on AddReturn, >so we need to catch both warnings >--- > C4/Circulation.pm | 2 +- > t/db_dependent/Circulation/Returns.t | 3 ++- > 2 files changed, 3 insertions(+), 2 deletions(-) > >diff --git a/C4/Circulation.pm b/C4/Circulation.pm >index 69ac19a2d8..069bb80274 100644 >--- a/C4/Circulation.pm >+++ b/C4/Circulation.pm >@@ -2877,7 +2877,7 @@ sub AddRenewal { > VALUES (now(),?,?,?,?,?,?,?,?)" > ); > $sth->execute( $borrowernumber, $accountno, $charge, $manager_id, >- "Renewal of Rental Item " . $item_object->title . " $item->{'barcode'}", >+ "Renewal of Rental Item " . $biblio->title . " $item->{'barcode'}", > 'Rent', $charge, $itemnumber ); > } > >diff --git a/t/db_dependent/Circulation/Returns.t b/t/db_dependent/Circulation/Returns.t >index 19e6313051..e8d52af732 100644 >--- a/t/db_dependent/Circulation/Returns.t >+++ b/t/db_dependent/Circulation/Returns.t >@@ -175,7 +175,8 @@ subtest "AddReturn logging on statistics table (item-level_itypes=1)" => sub { > is( $stat->itemtype, $ilevel_itemtype, > "item-level itype recorded on statistics for return"); > warning_like { AddIssue( $borrower, $item_without_itemtype->{ barcode } ) } >- qr/^item-level_itypes set but no itemtype set for item/, >+ [qr/^item-level_itypes set but no itemtype set for item/, >+ qr/^item-level_itypes set but no itemtype set for item/], > 'Item without itemtype set raises warning on AddIssue'; > warning_like { AddReturn( $item_without_itemtype->{ barcode }, $branch ) } > qr/^item-level_itypes set but no itemtype set for item/, >-- >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 18276
:
61122
|
61123
|
61124
|
61125
|
61126
|
61177
|
61178
|
61179
|
61180
|
61181
|
62081
|
62082
|
62083
|
62084
|
62085
|
62476
|
62477
|
62478
|
62479
|
62480
|
62481
|
63121
|
63122
|
63123
|
63124
|
63125
|
63126
|
63166
|
63294
|
63295
|
63296
|
63297
|
63298
|
63299
|
63300
|
64748
|
64809
|
64810
|
64811
|
64812
|
64813
|
64814
|
64815
|
64816
|
64817
|
64878
|
64879
|
64880
|
64881
|
64882
|
64883
|
64884
|
64885
|
64886
|
64887
|
64974
| 64975