[Koha-bugs] [Bug 21183] C4::Items - Remove GetItemnumberFromBarcode

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Aug 8 20:26:53 CEST 2018


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21183

--- Comment #1 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 77586
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77586&action=edit
Bug 21183: Replace C4::Items::GetItemnumberFromBarcode calls

C4::Items::GetItemnumberFromBarcode calls can be replaced with
  Koha::Items->find({ barcode => $barcode });

We should make sure the barcode existed in DB and so that ->find
returns an object. Note that most of the time we just wanted to know if
the barcode existed.
The changes are very simple, the only one that need attention is
the one in batchMod.pl. It is basically reusing what we did on
bug 21141.

Test plan:
Use the batch item modification/deletion tools to modify/delete items
from their barcode (using the textarea or a file)

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list