From 42417e14d9988239e47077d4183db73e854bb70f Mon Sep 17 00:00:00 2001 From: kados Date: Wed, 9 Aug 2006 16:39:46 +0000 Subject: [PATCH] Context->preference can't distinguish between 0 and NULL ... so we have to make the default 0 if any library doesn't want to show back issues. Paul, HDL, are you ok with adding this syspref to your libraries with the current default of 5? Otherwise, back issues won't show up ... if it's not OK, let me know and I'll find another way. --- C4/Bull.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Bull.pm b/C4/Bull.pm index fb2349c04a..2604fa06d5 100755 --- a/C4/Bull.pm +++ b/C4/Bull.pm @@ -376,7 +376,8 @@ sub getserials { ORDER BY IF(serial.publisheddate=\"00-00-0000\",serial.planneddate,serial.publisheddate) DESC"); $sth->execute($subscriptionid); my $counter=0; - my $syspref_counter = C4::Context->preference('ReceiveBackIssues') | 5; + my $syspref_counter = 0; + $syspref_counter = C4::Context->preference('ReceiveBackIssues') if C4::Context->preference('ReceiveBackIssues'); my @serials; while((my $line = $sth->fetchrow_hashref) && $counter <$syspref_counter) { $counter++; -- 2.39.5