Bug #24137
closedGET content_view_filter_rules index API default search is set to :name, this doesnt work for errata rules
Description
Searching erratum rules always result in an error because of the default search is set to :name which doesn't exist with rule type=erratum
[root@centos7-katello-3-6 ~]# curl 'https://admin:changeme@centos7-katello-3-6.sean.example.com/katello/api/v2/content_view_filters/18/rules' | python m json.tool:--:-- --:--:-- --:--:-- 1424
{
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 198 0 198 0 0 1415 0 -
"error": "the field (name) in the order statement is not valid field for search",
"page": null,
"per_page": null,
"results": [],
"search": null,
"sort": {
"by": null,
"order": null
},
"subtotal": null,
"total": null
}