Parsefilter - Variable repariert
authorG. Richardson <information@kivitendo-premium.de>
Fri, 10 Apr 2015 10:50:08 +0000 (12:50 +0200)
committerG. Richardson <information@kivitendo-premium.de>
Fri, 10 Apr 2015 10:50:08 +0000 (12:50 +0200)
yay for Tests!

SL/Controller/Helper/ParseFilter.pm

index c38974e..38be03e 100644 (file)
@@ -155,7 +155,7 @@ sub _dispatch_custom_filters {
   my $i = 0;
    while ($i < $#tokens) {
     eval {
-      $curr_class = $curr_class->meta->relationship($tokens[$_])->class;
+      $curr_class = $curr_class->meta->relationship($tokens[$i])->class;
       ++$i;
     } or do {
       last;