[Koha-cvs] koha/C4 Bull.pm [rel_2_2]
Joshua Ferraro
jmf at kados.org
Wed Aug 9 18:25:52 CEST 2006
CVSROOT: /sources/koha
Module name: koha
Branch: rel_2_2
Changes by: Joshua Ferraro <kados> 06/08/09 16:25:52
Modified files:
C4 : Bull.pm
Log message:
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).
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Bull.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.6.2.31&r2=1.6.2.32
Patches:
Index: Bull.pm
===================================================================
RCS file: /sources/koha/koha/C4/Attic/Bull.pm,v
retrieving revision 1.6.2.31
retrieving revision 1.6.2.32
diff -u -b -r1.6.2.31 -r1.6.2.32
--- Bull.pm 8 Aug 2006 19:52:23 -0000 1.6.2.31
+++ Bull.pm 9 Aug 2006 16:25:52 -0000 1.6.2.32
@@ -376,8 +376,9 @@
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"});
More information about the Koha-cvs
mailing list