Greetings,

I am beginning my work on bug 11592 the filter version. I was curious if this 
patch makes sense:

diff --git a/Koha/RecordProcessor.pm b/Koha/RecordProcessor.pm
index 9bb1fc2..a345156 100644
--- a/Koha/RecordProcessor.pm
+++ b/Koha/RecordProcessor.pm
@@ -103,7 +103,7 @@ sub new {
         my $filter_module = $filter =~ m/:/ ? $filter : 
"Koha::Filter::${schema}::${filter}";
         if (can_load( modules => { $filter_module => undef } )) {
             my $object = $filter_module->new();
-            $filter_module->initialize($param);
+            $object->initialize($param);
             push @filters, $object;
         }
     }

Because otherwise, how can I properly set some parameters?

GPML,
Mark Tompsett
_______________________________________________
Koha-devel mailing list
Koha-devel@lists.koha-community.org
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-devel
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to