From: Sven Schöling Date: Fri, 28 Feb 2014 10:00:47 +0000 (+0100) Subject: GetModels::Filtered: filter Konfiguration gefixt X-Git-Tag: release-3.2.0beta~485 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=1a1ad63eccb2e80142f756cf1714cb6461d13a56;p=kivitendo-erp.git GetModels::Filtered: filter Konfiguration gefixt --- 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;