aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
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},