koha-cvs
[Top][All Lists]
Advanced

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

[Koha-cvs] koha/admin itemtypes.pl


From: Pierrick LE GALL
Subject: [Koha-cvs] koha/admin itemtypes.pl
Date: Fri, 07 Apr 2006 11:13:15 +0000

CVSROOT:        /sources/koha
Module name:    koha
Branch:         
Changes by:     Pierrick LE GALL <address@hidden>       06/04/07 11:13:15

Modified files:
        admin          : itemtypes.pl 

Log message:
        bug fixed: toggle was not working anymore in itemtypes management 
screen due
        to previous commit.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/koha/admin/itemtypes.pl.diff?tr1=1.22&tr2=1.23&r1=text&r2=text

Patches:
Index: koha/admin/itemtypes.pl
diff -u koha/admin/itemtypes.pl:1.22 koha/admin/itemtypes.pl:1.23
--- koha/admin/itemtypes.pl:1.22        Fri Apr  7 11:10:25 2006
+++ koha/admin/itemtypes.pl     Fri Apr  7 11:13:15 2006
@@ -232,7 +232,7 @@
     my @loop;
     foreach my $result (@{$results}[$first .. $last]) {
         my $itemtype = $result;
-        $itemtype->{toggle} = ($toggle eq 0 ? 1 : 0);
+        $itemtype->{toggle} = ($toggle++%2 eq 0 ? 1 : 0);
         $itemtype->{imageurl} =
             getitemtypeimagesrcfromurl($itemtype->{imageurl});
         $itemtype->{rentalcharge} = sprintf('%.2f', $itemtype->{rentalcharge});




reply via email to

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