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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Aug 16 17:50:14 CEST 2018


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

--- Comment #10 from Josef Moravec <josef.moravec at gmail.com> ---
Created attachment 77937
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77937&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)

Signed-off-by: Josef Moravec <josef.moravec at gmail.com>

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


More information about the Koha-bugs mailing list