mirror of
https://github.com/ansible/awx.git
synced 2026-05-12 03:47:36 -02:30
Treat any search string that doesn't start with a matching attribute as a string
This commit is contained in:
@@ -145,9 +145,9 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', '
|
|||||||
params = _.merge(params, qs.encodeParam({term: term, searchTerm: true}), combineSameSearches);
|
params = _.merge(params, qs.encodeParam({term: term, searchTerm: true}), combineSameSearches);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// Its not a search term or a related search term
|
// Its not a search term or a related search term - treat it as a string
|
||||||
else {
|
else {
|
||||||
params = _.merge(params, qs.encodeParam({term: term}), combineSameSearches);
|
params = _.merge(params, setDefaults(term), combineSameSearches);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user