From 0d7a7ae57f986ba6990ff7825cbe7692f235765b Mon Sep 17 00:00:00 2001 From: Michael Abashian Date: Tue, 2 Aug 2016 10:58:24 -0400 Subject: [PATCH] Fixed bug where clearing out job/skip tags to an empty string wasn't be applied when launching a job --- .../job-submission-factories/launchjob.factory.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/awx/ui/client/src/job-submission/job-submission-factories/launchjob.factory.js b/awx/ui/client/src/job-submission/job-submission-factories/launchjob.factory.js index ff0ee1e824..3968eaf484 100644 --- a/awx/ui/client/src/job-submission/job-submission-factories/launchjob.factory.js +++ b/awx/ui/client/src/job-submission/job-submission-factories/launchjob.factory.js @@ -42,11 +42,11 @@ export default } - if(scope.ask_tags_on_launch && scope.other_prompt_data && scope.other_prompt_data.job_tags){ + if(scope.ask_tags_on_launch && scope.other_prompt_data && typeof scope.other_prompt_data.job_tags === 'string'){ job_launch_data.job_tags = scope.other_prompt_data.job_tags; } - if(scope.ask_skip_tags_on_launch && scope.other_prompt_data && scope.other_prompt_data.skip_tags){ + if(scope.ask_skip_tags_on_launch && scope.other_prompt_data && typeof scope.other_prompt_data.skip_tags === 'string'){ job_launch_data.skip_tags = scope.other_prompt_data.skip_tags; }