Project

General

Profile

Bug #2747

Unable to autocomplete right hand side in search

Added by Dominic Cleal over 6 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Search
Target version:
Difficulty:
Triaged:
No
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:

Description

On 1.2.0, trying to autocomplete using the search box (at least on the Host page with name = ) fails and an error appears in the logs:

ArgumentError - wrong number of arguments (1 for 0):
  activerecord (3.2.13) lib/active_record/scoping/named.rb:178:in `block (2 levels) in scope'
  activerecord (3.2.13) lib/active_record/scoping/default.rb:41:in `block in unscoped'
  activerecord (3.2.13) lib/active_record/relation.rb:241:in `block in scoping'
  activerecord (3.2.13) lib/active_record/scoping.rb:98:in `with_scope'
  activerecord (3.2.13) lib/active_record/relation.rb:241:in `scoping'
  activerecord (3.2.13) lib/active_record/scoping/default.rb:41:in `unscoped'
  activerecord (3.2.13) lib/active_record/scoping/named.rb:178:in `block in scope'
  scoped_search (2.6.0) lib/scoped_search/auto_complete_builder.rb:207:in `completer_scope'
  scoped_search (2.6.0) lib/scoped_search/auto_complete_builder.rb:202:in `complete_value'
  scoped_search (2.6.0) lib/scoped_search/auto_complete_builder.rb:49:in `build_autocomplete_options'
  scoped_search (2.6.0) lib/scoped_search/auto_complete_builder.rb:22:in `auto_complete'
  scoped_search (2.6.0) lib/scoped_search/definition.rb:273:in `complete_for'
  lib/foreman/controller/auto_complete_search.rb:5:in `auto_complete_search'

Associated revisions

Revision bae0bea9 (diff)
Added by Dominic Cleal over 6 years ago

fixes #2747 - scoped search lambda takes one argument

Revision 0e3cf032 (diff)
Added by Dominic Cleal over 6 years ago

fixes #2747 - scoped search lambda takes one argument
(cherry picked from commit bae0bea90d8096e7a787984b7167d13627da94fd)

Conflicts:
test/unit/host_test.rb

History

#1 Updated by Dominic Cleal over 6 years ago

  • Status changed from New to Ready For Testing
  • Assignee set to Dominic Cleal

#2 Updated by Dominic Cleal over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100

Also available in: Atom PDF