added search model parameterization
edenc [Mon, 31 Aug 2009 17:01:00 +0000 (17:01 +0000)]
lib/Reaction/UI/ViewPort/SearchableListViewContainer.pm

index a5696c9..d83941b 100644 (file)
@@ -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},