koha-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-cvs] koha/C4 Bull.pm [rel_2_2]


From: Joshua Ferraro
Subject: [Koha-cvs] koha/C4 Bull.pm [rel_2_2]
Date: Wed, 09 Aug 2006 16:39:46 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Joshua Ferraro <kados>  06/08/09 16:39:46

Modified files:
        C4             : Bull.pm 

Log message:
        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.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/C4/Bull.pm?cvsroot=koha&only_with_tag=rel_2_2&r1=1.6.2.32&r2=1.6.2.33

Patches:
Index: Bull.pm
===================================================================
RCS file: /sources/koha/koha/C4/Attic/Bull.pm,v
retrieving revision 1.6.2.32
retrieving revision 1.6.2.33
diff -u -b -r1.6.2.32 -r1.6.2.33
--- Bull.pm     9 Aug 2006 16:25:52 -0000       1.6.2.32
+++ Bull.pm     9 Aug 2006 16:39:46 -0000       1.6.2.33
@@ -376,7 +376,8 @@
   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++;




reply via email to

[Prev in Thread] Current Thread [Next in Thread]