Project

General

Profile

« Previous | Next » 

Revision 6beb3d8b

Added by Tomer Brisker over 6 years ago

Fixes #22556 - Correct host search for parent hostgroup

Currently, searching on a non-existant parent fails due to
`hostgroup.subtree_ids` throwing a NoMethodError when no matching
hostgroup is found. This is rescued by scoped search, causing the
search to run with no conditions instead.
(see
https://github.com/wvanbergen/scoped_search/blob/v4.1.2/lib/scoped_search/query_builder.rb#L405
for the scoped_search part)

  • added
  • modified
  • copied
  • renamed
  • deleted