From 0f68ead0b37aa3e994176b4c03eaf15ee4fdff24 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Tue, 27 Oct 2015 13:58:27 -0400 Subject: [PATCH] fixed fields not clearing out between source changes --- awx/ui/client/src/helpers/Groups.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/awx/ui/client/src/helpers/Groups.js b/awx/ui/client/src/helpers/Groups.js index 0e0eef4636..4d7fb0487c 100644 --- a/awx/ui/client/src/helpers/Groups.js +++ b/awx/ui/client/src/helpers/Groups.js @@ -1465,6 +1465,11 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name // Change the lookup and regions when the source changes sources_scope.sourceChange = function () { + sources_scope.credential_name = ""; + sources_scope.credential = ""; + if (sources_scope.credential_name_api_error) { + delete sources_scope.credential_name_api_error; + } parent_scope.showSchedulesTab = (mode === 'edit' && sources_scope.source && sources_scope.source.value!=="manual") ? true : false; SourceChange({ scope: sources_scope, form: SourceForm }); };