From dc376c1c404b69b841eb2e048a3fcf3db7c1601a Mon Sep 17 00:00:00 2001 From: Chris Houseknecht Date: Tue, 4 Mar 2014 19:05:58 -0500 Subject: [PATCH] AC-1070 creating new credential fails. --- awx/ui/static/js/helpers/Credentials.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/awx/ui/static/js/helpers/Credentials.js b/awx/ui/static/js/helpers/Credentials.js index 7503ab16cf..f5bf3edeb7 100644 --- a/awx/ui/static/js/helpers/Credentials.js +++ b/awx/ui/static/js/helpers/Credentials.js @@ -156,7 +156,9 @@ angular.module('CredentialsHelper', ['Utilities']) if (base === 'credentials') { ReturnToCaller(); } - ReturnToCaller(1); + else { + ReturnToCaller(1); + } }) .error(function (data, status) { Wait('stop'); @@ -175,7 +177,9 @@ angular.module('CredentialsHelper', ['Utilities']) if (base === 'credentials') { ReturnToCaller(); } - ReturnToCaller(1); + else { + ReturnToCaller(1); + } }) .error(function (data, status) { Wait('stop');