diff --git a/rotating_collections/addItems.pl b/rotating_collections/addItems.pl index 1872578095..f3de0d0952 100755 --- a/rotating_collections/addItems.pl +++ b/rotating_collections/addItems.pl @@ -20,6 +20,7 @@ use Modern::Perl; use C4::Output qw( output_html_with_http_headers ); use C4::Auth qw( get_template_and_user ); +use C4::Circulation qw( barcodedecode ); use C4::Context; use C4::RotatingCollections; @@ -43,6 +44,7 @@ if ( defined $op and ## Add the given item to the collection my $colId = $query->param('colId'); my $barcode = $query->param('barcode'); + $barcode = barcodedecode($barcode); my $removeItem = $query->param('removeItem'); my $item = Koha::Items->find({barcode => $barcode}); my $itemnumber = $item ? $item->itemnumber : undef;