From 1a1ad63eccb2e80142f756cf1714cb6461d13a56 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sven=20Sch=C3=B6ling?= Date: Fri, 28 Feb 2014 11:00:47 +0100 Subject: [PATCH] GetModels::Filtered: filter Konfiguration gefixt --- SL/Controller/Helper/GetModels/Filtered.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SL/Controller/Helper/GetModels/Filtered.pm b/SL/Controller/Helper/GetModels/Filtered.pm index 6d2be88e9..642d542a0 100644 --- a/SL/Controller/Helper/GetModels/Filtered.pm +++ b/SL/Controller/Helper/GetModels/Filtered.pm @@ -8,7 +8,7 @@ use SL::Controller::Helper::ParseFilter (); use List::MoreUtils qw(uniq); use Rose::Object::MakeMethods::Generic ( - scalar => [ qw(filter_args filter_params orig_filter) ], + scalar => [ qw(filter_args filter_params orig_filter filter) ], 'scalar --get_set_init' => [ qw(form_params launder_to) ], ); @@ -31,7 +31,7 @@ sub read_params { return %{ $self->filter_params } if $self->filter_params; my $source = $self->get_models->source; - my $filter = $params{filter} // $source->{ $self->form_params } // {}; + my $filter = $self->filter // $source->{ $self->form_params } // {}; $self->orig_filter($filter); my %filter_args = $self->_get_filter_args; -- 2.20.1