From 3cb77ac087d9d0559649ba810be2bd26d97dee40 Mon Sep 17 00:00:00 2001 From: edenc Date: Mon, 31 Aug 2009 17:01:00 +0000 Subject: added search model parameterization --- lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lib/Reaction') diff --git a/lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm b/lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm index a5696c9..d83941b 100644 --- a/lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm +++ b/lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm @@ -49,7 +49,10 @@ override BUILDARGS => sub { location => $listview_location, ); $args->{search_form} = $search_form_class->new( - model => $action_class->new(target_model => $spec), + model => $action_class->new( + target_model => $spec, + %{$args->{search_model}||{}} + ), location => $args->{location}.'-search_form', apply_label => 'search', ctx => $args->{ctx}, -- cgit v1.2.3-54-g00ecf