Bug 2889: Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl.
authorGarry Collum <gcollum@gmail.com>
Tue, 9 Jun 2009 22:35:24 +0000 (18:35 -0400)
committerHenri-Damien LAURENT <henridamien.laurent@biblibre.com>
Wed, 16 Sep 2009 21:19:11 +0000 (23:19 +0200)
Removed toggle variable from aqbookfund.pl and aqbookfund.tmpl. Used template __odd__ variable in aqbookfund.tmpl.

Signed-off-by: Galen Charlton <galen.charlton@liblime.com>
Signed-off-by: Henri-Damien LAURENT <henridamien.laurent@biblibre.com>
admin/aqbookfund.pl
koha-tmpl/intranet-tmpl/prog/en/modules/admin/aqbookfund.tmpl

index d5673c8..952e068 100755 (executable)
@@ -268,13 +268,11 @@ else { # DEFAULT
         scalar(@results) - 1,
     );
 
-    my $toggle = 0;
     foreach my $result (@results[$first .. $last]) {
         push(
             @loop,
             {
                 %{$result},
-                toggle => $toggle++%2,
                 branchname =>
                     $branches->{ $result->{branchcode} }->{branchname},
                 has_budgets => defined $nb_budgets_of{ $result->{bookfundid} },
index 9581f71..3403c69 100644 (file)
   </tr>
 
     <!-- TMPL_LOOP name="bookfund" -->
-      <!-- TMPL_IF NAME="toggle" -->
+      <!-- TMPL_UNLESS NAME="__odd__" -->
   <tr class="highlight">
       <!-- TMPL_ELSE -->
   <tr>
-      <!-- /TMPL_IF -->
+      <!-- /TMPL_UNLESS -->
     <td>
       <!-- TMPL_VAR name="bookfundid" -->
     </td>