Merge pull request #41 from kivitendo/f-rights-to-view
[kivitendo-erp.git] / SL / Controller / TopQuickSearch / Article.pm
index f3fc1ac..e689bbe 100644 (file)
@@ -66,7 +66,7 @@ sub redirect_to_part {
   SL::Controller::Base->new->url_for(
     controller => 'controller.pl',
     action     => 'Part/edit',
-    id         => $term,
+    'part.id'  => $term,
   );
 }
 
@@ -83,6 +83,7 @@ sub init_models {
     source     => {
       filter => {
         (part_type => $self->part_type) x!!$self->part_type,
+        or => [ obsolete => undef, obsolete => 0 ],
         'all:substr:multi::ilike' => $::form->{term},
       },
     },