Revert "bugfix for 2451 : serial recieve & barcode does exist complaint"
[koha.git] / serials / serials-edit.pl
index 8cefe5d..d54912e 100755 (executable)
@@ -241,10 +241,7 @@ if ($op eq 'serialchangestatus') {
   #           push @errors,"barcode_not_unique" if($exists);
             $template->param("barcode_not_unique" => 1,'errserialseq'=>$serialseqs[$index]);
             # if barcode exists, don't create, but report The problem.
-                       if ($exists){
-              $url_error_str = "rcv_error=barcode_not_unique&rcv_error_param=$serialseqs[$index]";
-              $template->param("barcode_not_unique" => 1,'errserialseq'=>$serialseqs[$index]);
-            } else {
+                       unless ($exists){
               my ($biblionumber,$bibitemnum,$itemnumber) = AddItemFromMarc($record,$itemhash{$item}->{'bibnum'});
               AddItem2Serial($itemhash{$item}->{'serial'},$itemnumber);
             }