Skip to content

Commit

Permalink
Fixes #35752 - Make errata search filtered with ID work in Web UI
Browse files Browse the repository at this point in the history
  • Loading branch information
lfu committed Nov 17, 2022
1 parent 279073d commit c51a689
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/katello/erratum.rb
Expand Up @@ -24,7 +24,8 @@ class Erratum < Katello::Model
has_many :cves, :class_name => "Katello::ErratumCve", :dependent => :destroy, :inverse_of => :erratum
has_many :packages, :class_name => "Katello::ErratumPackage", :dependent => :destroy, :inverse_of => :erratum

scoped_search :on => :errata_id, :only_explicit => true
scoped_search :on => :id, :rename => :db_id, :only_explicit => true, :validator => ScopedSearch::Validators::INTEGER
scoped_search :on => :errata_id, :complete_value => true, :only_explicit => true
scoped_search :on => :errata_id, :rename => :id, :complete_value => true, :only_explicit => true
scoped_search :on => :title
scoped_search :on => :title, :rename => :synopsis, :complete_value => true, :only_explicit => true
Expand Down

0 comments on commit c51a689

Please sign in to comment.