[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 16:35:27 CEST 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=21183
Jonathan Druart <jonathan.druart at bugs.koha-community.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #77687|0 |1
is obsolete| |
--- Comment #5 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
Created attachment 77930
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=77930&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