koha-cvs
[Top][All Lists]
Advanced

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

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


From: Henri-Damien LAURENT
Subject: [Koha-cvs] koha/bull statecollection.pl [rel_2_2]
Date: Tue, 07 Mar 2006 14:48:01 +0000

CVSROOT:        /cvsroot/koha
Module name:    koha
Branch:         rel_2_2
Changes by:     Henri-Damien LAURENT <address@hidden>   06/03/07 14:48:01

Modified files:
        bull           : statecollection.pl 

Log message:
        Bug Fixing : Internal server error when no location list nor itemstatus

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

Patches:
Index: koha/bull/statecollection.pl
diff -u koha/bull/statecollection.pl:1.3.2.14 
koha/bull/statecollection.pl:1.3.2.15
--- koha/bull/statecollection.pl:1.3.2.14       Mon Feb 27 15:52:16 2006
+++ koha/bull/statecollection.pl        Tue Mar  7 14:48:00 2006
@@ -122,8 +122,10 @@
                push @itemlocationloop, \%row;
        }
        foreach my $data (@serialslist){
-               $data->{"itemstatusloop"address@hidden if 
(scalar(@itemstatusloop));
-               $data->{"itemlocationloop"address@hidden if 
(scalar(@itemlocationloop));
+               if 
(scalar(@itemstatusloop)){$data->{"itemstatusloop"address@hidden;}
+               else { $data->{"itemstatusloop"}=[];}
+               if 
(scalar(@itemlocationloop)){$data->{"itemlocationloop"address@hidden;}
+               else {$data->{"itemlocationloop"}=[];}
                $data->{"branchloop"address@hidden ;
        }
        $template->param(serialadditems 
=>C4::Context->preference("serialsadditems"),




reply via email to

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