From f9ccb693eca9714ded65638487a1725e11ecc492 Mon Sep 17 00:00:00 2001 From: tipaul Date: Mon, 27 Feb 2006 15:52:16 +0000 Subject: [PATCH] bugfix : don't create an item if a subscription has expired --- bull/statecollection.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bull/statecollection.pl b/bull/statecollection.pl index adc622ee90..a48d4ebd73 100755 --- a/bull/statecollection.pl +++ b/bull/statecollection.pl @@ -64,7 +64,7 @@ if ($op eq 'serialchangestatus') { if ($serialseqs[$i]) { newissue($serialseqs[$i],$subscriptionid,$subscription->{biblionumber},$status[$i], format_date_in_iso($planneddates[$i])); } - if (($status[$i]==2) && C4::Context->preference("serialsadditems")){ + if (($status[$i]==2) && C4::Context->preference("serialsadditems") && !hassubscriptionexpired($subscriptionid)){ my %info; $info{branch}=$homebranches[$i]; $info{barcode}=$barcodes[$i]; -- 2.39.5