Skip to content

Commit 68796b0

Browse files
committed
Fixes #38924 - Allow scoped search on 'persistence' field
1 parent 374c956 commit 68796b0

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

app/models/katello/installed_package.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,8 @@ class Jail < Safemode::Jail
2424
scoped_search :on => :release
2525
scoped_search :on => :arch
2626
scoped_search :on => :vendor, :complete_value => true
27+
scoped_search :relation => :host_installed_packages, :on => :persistence,
28+
:complete_value => Katello::HostInstalledPackage::PERSISTENCE_VALUES.index_by(&:itself),
29+
:only_explicit => true
2730
end
2831
end

0 commit comments

Comments
 (0)