From e6d84442e20d96027f7b42660841576d7d852f85 Mon Sep 17 00:00:00 2001 From: kados Date: Wed, 9 Aug 2006 16:25:52 +0000 Subject: [PATCH] Fix for bug 1125: after entering a manual issue, the "Next expected issue" field is duplicated Adds a syspref to enable librarian to specify how many previous issues to display (5 by default, but can be set to 0 for instance, to show none). --- C4/Bull.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Bull.pm b/C4/Bull.pm index ee342d743b..fb2349c04a 100755 --- a/C4/Bull.pm +++ b/C4/Bull.pm @@ -376,8 +376,9 @@ 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 @serials; - while((my $line = $sth->fetchrow_hashref) && $counter <5) { + while((my $line = $sth->fetchrow_hashref) && $counter <$syspref_counter) { $counter++; $line->{"status".$line->{status}} = 1; # fills a "statusX" value, used for template status select list $line->{"publisheddate"} = format_date($line->{"publisheddate"});