[Koha-cvs] koha/admin itemtypes.pl
Pierrick LE GALL
pierrick at koha-fr.org
Fri Apr 7 13:13:15 CEST 2006
CVSROOT: /sources/koha
Module name: koha
Branch:
Changes by: Pierrick LE GALL <plg at savannah.gnu.org> 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});
More information about the Koha-cvs
mailing list