From bfb88cc4e0bd5fe62a46ec9c617690dd3099c878 Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Sun, 4 May 2014 21:12:33 +0000 Subject: [PATCH] Bug 7180: (follow-up) fix regression on bug 6074 This patch ensures that bibs selected for ordering are marked as imported in their import batch. Signed-off-by: Galen Charlton --- acqui/addorderiso2709.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/acqui/addorderiso2709.pl b/acqui/addorderiso2709.pl index 2999206ba8..ad028b6c24 100755 --- a/acqui/addorderiso2709.pl +++ b/acqui/addorderiso2709.pl @@ -195,6 +195,7 @@ if ($op eq ""){ } } ( $biblionumber, $bibitemnum ) = AddBiblio( $marcrecord, $cgiparams->{'frameworkcode'} || '' ); + SetImportRecordStatus( $biblio->{'import_record_id'}, 'imported' ); # 2nd add authorities if applicable if (C4::Context->preference("BiblioAddsAuthorities")){ my $headings_linked =BiblioAutoLink($marcrecord, $cgiparams->{'frameworkcode'}); @@ -279,6 +280,8 @@ if ($op eq ""){ my ( $biblionumber, $bibitemnum, $itemnumber ) = AddItemFromMarc( $record, $biblionumber ); NewOrderItem( $itemnumber, $ordernumber ); } + } else { + SetImportRecordStatus( $biblio->{'import_record_id'}, 'imported' ); } } # go to basket page -- 2.39.5