From f71c0ed865858d62b3c58c0704c2895f12467f33 Mon Sep 17 00:00:00 2001 From: plg Date: Fri, 7 Apr 2006 11:13:15 +0000 Subject: [PATCH] bug fixed: toggle was not working anymore in itemtypes management screen due to previous commit. --- admin/itemtypes.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/itemtypes.pl b/admin/itemtypes.pl index a00c713aa5..bd2b602a38 100755 --- a/admin/itemtypes.pl +++ b/admin/itemtypes.pl @@ -232,7 +232,7 @@ UPDATE itemtypes 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}); -- 2.39.5