@@ -, +, @@ value at cataloguing/additem.pl --- cataloguing/additem.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/cataloguing/additem.pl +++ a/cataloguing/additem.pl @@ -470,7 +470,7 @@ if ($op eq "additem") { $nextop = $current_item ? "saveitem" : "additem"; #------------------------------------------------------------------------------- -} elsif ($op eq "dupeitem") { +} elsif ($op eq "dupeitem") {{ #------------------------------------------------------------------------------- # retrieve item if exist => then, it's a modif if (my $item = Koha::Items->find($itemnumber)) { @@ -479,7 +479,7 @@ if ($op eq "additem") { $current_item = undef; } - if (!$current_item) { $nextop = "additem"; return; } + if (!$current_item) { $nextop = "additem"; last; } if (C4::Context->preference('autoBarcode') eq 'incremental') { my ( $barcode ) = C4::Barcodes::ValueBuilder::incremental::get_barcode; $current_item->{barcode} = $barcode; @@ -490,7 +490,7 @@ if ($op eq "additem") { $nextop = "additem"; #------------------------------------------------------------------------------- -} elsif ($op eq "delitem") { +}} elsif ($op eq "delitem") { #------------------------------------------------------------------------------- # check that there is no issue on this item before deletion. my $item = Koha::Items->find($itemnumber); --