This removes any leading or trailing whitespace from the external id
passed
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
use Mojo::Base 'Mojolicious::Controller';
+use C4::Circulation qw( barcodedecode );
+
use Koha::Items;
use List::MoreUtils qw( any );
);
}
-
my $bundle_item_id = $c->validation->param('body')->{'external_id'};
+ $bundle_item_id = barcodedecode($bundle_item_id);
my $bundle_item = Koha::Items->find( { barcode => $bundle_item_id } );
unless ($bundle_item) {
}
my $bundle_item_id = $c->validation->param('bundled_item_id');
+ $bundle_item_id = barcodedecode($bundle_item_id);
my $bundle_item = Koha::Items->find( { itemnumber => $bundle_item_id } );
unless ($bundle_item) {