diff options
author | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-08-31 17:01:00 +0000 |
---|---|---|
committer | edenc <edenc@03d0b0b2-0e1a-0410-a411-fdb2f4bd65d7> | 2009-08-31 17:01:00 +0000 |
commit | 3cb77ac087d9d0559649ba810be2bd26d97dee40 (patch) | |
tree | 975e8ae1d6231ac98530b654626f73432561ec78 | |
parent | dc254e2da747ccce2462e63fb181014d05131c80 (diff) | |
download | reaction-3cb77ac087d9d0559649ba810be2bd26d97dee40.tar.gz reaction-3cb77ac087d9d0559649ba810be2bd26d97dee40.zip |
added search model parameterization
-rw-r--r-- | lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm | 5 |
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}, |