Bug #6763

Both locations and organizations shown in search autocomplete

Added by Dominic Cleal almost 4 years ago. Updated 8 days ago.

Status:Closed
Priority:Normal
Assignee:Tomer Brisker
Category:Search
Target version:1.6.1
Difficulty: Team Backlog:
Triaged: Fixed in Releases:
Bugzilla link:1122828 Found in Releases:
Pull request:https://github.com/theforeman/foreman/pull/1702

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1122828
Description of problem:
The search autocompletion on the organisation and location list pages shows both orgs & locs no matter which page you're on.

Version-Release number of selected component (if applicable):
6.0.3

How reproducible:
Always

Steps to Reproduce:
1. View the organisations page
2. Type "name = " into search

Actual results:
Lists both locations and organisations

Expected results:
Only organisations

Additional info:
Vice-versa on locations page.

Associated revisions

Revision 26ee3b1e
Added by Tomer Brisker almost 4 years ago

Fixes #6763 - Correctly choose autocomplete search scope for taxonomies depenant on controller

Revision 54e19b73
Added by Tomer Brisker almost 4 years ago

Fixes #6763 - Correctly choose autocomplete search scope for taxonomies depenant on controller

(cherry picked from commit 26ee3b1e4f526a3c3975a3640e868dda205b5850)

History

#1 Updated by Dominic Cleal almost 4 years ago

  • Category set to Search

#2 Updated by Tomer Brisker almost 4 years ago

  • Status changed from New to Assigned

#3 Updated by Tomer Brisker almost 4 years ago

  • Assignee set to Tomer Brisker

This is caused by scoped search mistakenly setting {Organization, Location}.scoped_search_definition.klass to Taxonomy instead of the relevant class.

#4 Updated by The Foreman Bot almost 4 years ago

  • Status changed from Assigned to Ready For Testing
  • Target version set to 1.7.4
  • Pull request https://github.com/theforeman/foreman/pull/1702 added

#5 Updated by Dominic Cleal almost 4 years ago

  • Legacy Backlogs Release (now unused) set to 22

#6 Updated by Anonymous almost 4 years ago

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

Also available in: Atom PDF