aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authoredenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-08-31 17:01:00 +0000
committeredenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7>2009-08-31 17:01:00 +0000
commit3cb77ac087d9d0559649ba810be2bd26d97dee40 (patch)
tree975e8ae1d6231ac98530b654626f73432561ec78 /lib
parentdc254e2da747ccce2462e63fb181014d05131c80 (diff)
downloadreaction-3cb77ac087d9d0559649ba810be2bd26d97dee40.tar.gz
reaction-3cb77ac087d9d0559649ba810be2bd26d97dee40.zip
added search model parameterization
Diffstat (limited to 'lib')
-rw-r--r--lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm5
1 files changed, 4 insertions, 1 deletions
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},