Bug 22790: The system preference itemBarcodeInputFilter is not applied for barcodes inputed via SIP2

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
This commit is contained in:
Andreas Jonsson 2019-04-26 19:44:59 +00:00 committed by Nick Clemens
parent 503842ac6c
commit d3f4b50bdd

View file

@ -75,7 +75,7 @@ use Koha::Holds;
sub new {
my ($class, $item_id) = @_;
my $type = ref($class) || $class;
my $item = Koha::Items->find( { barcode => $item_id } );
my $item = Koha::Items->find( { barcode => barcodedecode( $item_id ) } );
unless ( $item ) {
syslog("LOG_DEBUG", "new ILS::Item('%s'): not found", $item_id);
warn "new ILS::Item($item_id) : No item '$item_id'.";