Bug #16211
Audit auto-complete is failed when searching by host
Description
Reproduce:
In audit search-bar (e.g: user < email preferences < audit query builder) type `host = `
the auto-complete will failed with NoMethodError:
2016-08-21T15:21:54 5455fa1c [app] [F] | NoMethodError (undefined method `scoped' for #<Class:0x0000000ced5b50>): | app/models/host.rb:15:in `method_missing' | app/controllers/concerns/foreman/controller/auto_complete_search.rb:13:in `auto_complete_search' | app/controllers/concerns/application_shared.rb:14:in `set_timezone' | app/models/concerns/foreman/thread_session.rb:32:in `clear_thread' | lib/middleware/catch_json_parse_errors.rb:9:in `call' | lib/middleware/tagged_logging.rb:18:in `call'
Associated revisions
Fixes #16211 - show host autocomplete in audit search
(cherry picked from commit 6ee0d88682dc290e1a6a3aa9671855af6ac2f82f)
History
#1
Updated by The Foreman Bot almost 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/3753 added
#2
Updated by Daniel Lobato Garcia almost 6 years ago
- Target version set to 1.6.2
#3
Updated by Amir Fefer almost 6 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 6ee0d88682dc290e1a6a3aa9671855af6ac2f82f.
#4
Updated by Dominic Cleal over 5 years ago
- Category set to Search
- Legacy Backlogs Release (now unused) set to 181
Fixes #16211 - show host autocomplete in audit search