From 23b8da277b0a1aa67f0686aa65a9e0d527a3b26b Mon Sep 17 00:00:00 2001 From: Paul POULAIN Date: Mon, 4 Aug 2008 15:31:07 +0200 Subject: [PATCH] bugfix for 2451 : serial recieve & barcode does exist complaint Signed-off-by: Joshua Ferraro --- serials/serials-edit.pl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/serials/serials-edit.pl b/serials/serials-edit.pl index d54912e495..8cefe5dffd 100755 --- a/serials/serials-edit.pl +++ b/serials/serials-edit.pl @@ -241,7 +241,10 @@ 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. - unless ($exists){ + 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 { my ($biblionumber,$bibitemnum,$itemnumber) = AddItemFromMarc($record,$itemhash{$item}->{'bibnum'}); AddItem2Serial($itemhash{$item}->{'serial'},$itemnumber); } -- 2.39.5