Bug #32389
closedIncorrect search query is formed while selecting location/organization of the host
Description
Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1806459
Description of problem:
If you have Organization or Location with 2 or more words like (Default Organization or Default Location). GoTo Hosts -> All Hosts -> Select/Click a host to see details. On the left-hand detail box, click Organization name (Default Organization) or Location name (Default Location).
This will take you to the Hosts -> All Hosts page with search query but the query is incorrect so you will see no hosts.
query formed is as below
~~
organization = Default Organization
~~
Version-Release number of selected component (if applicable):
Foreman 1.24
How reproducible:
Always
Steps to Reproduce:
1. Select the host in "Default Organization"
2. Click the host to see detail page
3. Click on the Default Organization
Actual results:
Wrong search query formed as a result no hosts is shown.
~~
organization = Default Organization
~~
Expected results:
Search query should be
~~
organization = "Default Organization" ----> In Quotes
~~
Additional info:
This works fine in Satellite 6.6