mirror of
https://github.com/ansible/awx.git
synced 2026-05-18 06:47:41 -02:30
Fixed bug where created_by filter was lost when adding a search tag
This commit is contained in:
@@ -24,6 +24,11 @@ export function PortalModeJobsController($scope, $rootScope, GetBasePath, Genera
|
|||||||
$scope.activeFilter = 'user';
|
$scope.activeFilter = 'user';
|
||||||
|
|
||||||
var init = function(sort){
|
var init = function(sort){
|
||||||
|
// We need to explicitly set the lists base path so that tag searching will keep the '?created_by'
|
||||||
|
// query param when it's present. If we don't do this, then tag search will just grab the base
|
||||||
|
// path for this list (/api/v1/jobs) and lose the created_by filter
|
||||||
|
list.basePath = defaultUrl;
|
||||||
|
|
||||||
view.inject(list, {
|
view.inject(list, {
|
||||||
id: 'portal-jobs',
|
id: 'portal-jobs',
|
||||||
mode: 'edit',
|
mode: 'edit',
|
||||||
|
|||||||
Reference in New Issue
Block a user