From 7c970becaab163327f9c0cdba5f606ac70db4f02 Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Mon, 23 Jan 2017 15:39:41 -0500 Subject: [PATCH] Fixed bug where you couldn't delete the standard out search tags if there was more than one. --- .../src/shared/smart-search/smart-search.controller.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/awx/ui/client/src/shared/smart-search/smart-search.controller.js b/awx/ui/client/src/shared/smart-search/smart-search.controller.js index b460bd932a..f3d2602a26 100644 --- a/awx/ui/client/src/shared/smart-search/smart-search.controller.js +++ b/awx/ui/client/src/shared/smart-search/smart-search.controller.js @@ -137,11 +137,8 @@ export default ['$stateParams', '$scope', '$state', 'QuerySet', 'GetBasePath', ' else { encodeParams.searchTerm = true; } - removed = qs.encodeParam(encodeParams); - } - else { - removed = setDefaults(tagToRemove); } + removed = qs.encodeParam(encodeParams); } _.each(removed, (value, key) => { if (Array.isArray(queryset[key])){