Bug 27526: Fix 'add & duplicate item'

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
This commit is contained in:
Jonathan Druart 2021-10-13 09:34:19 +02:00
parent e8d9c0e1a7
commit 46394b0021
1 changed files with 1 additions and 1 deletions

View File

@ -465,7 +465,7 @@ if ($op eq "additem") {
$item->barcode(barcodedecode($item->barcode));
# If we have to add or add & duplicate, we add the item
if ( $add_submit || $prefillitem) {
if ( $add_submit || $add_duplicate_submit || $prefillitem) {
# check for item barcode # being unique
if ( defined $item->barcode