[Koha-cvs] koha/bull statecollection.pl [rel_2_2]

paul poulain paul at koha-fr.org
Mon Feb 27 16:52:16 CET 2006


CVSROOT:	/cvsroot/koha
Module name:	koha
Branch: 	rel_2_2
Changes by:	paul poulain <tipaul at savannah.gnu.org>	06/02/27 15:52:16

Modified files:
	bull           : statecollection.pl 

Log message:
	bugfix : don't create an item if a subscription has expired

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/bull/statecollection.pl.diff?only_with_tag=rel_2_2&tr1=1.3.2.13&tr2=1.3.2.14&r1=text&r2=text

Patches:
Index: koha/bull/statecollection.pl
diff -u koha/bull/statecollection.pl:1.3.2.13 koha/bull/statecollection.pl:1.3.2.14
--- koha/bull/statecollection.pl:1.3.2.13	Wed Feb  8 09:20:11 2006
+++ koha/bull/statecollection.pl	Mon Feb 27 15:52:16 2006
@@ -64,7 +64,7 @@
 			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];





More information about the Koha-cvs mailing list