[Koha-devel] Koha::RecordProcessor question

Mark Tompsett mtompset at hotmail.com
Fri Jul 24 21:40:20 CEST 2015


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20150724/61cd7e71/attachment.html>


More information about the Koha-devel mailing list