From 63f0aa732456cc4db23cfef06a07432518c984bf Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 3 Aug 2017 10:08:48 -0400 Subject: [PATCH] Fixed bug displaying json/yaml variables validation errors when the user attempts to save --- awx/ui/client/src/shared/Utilities.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/shared/Utilities.js b/awx/ui/client/src/shared/Utilities.js index 507d0b7ec4..531bbc357c 100644 --- a/awx/ui/client/src/shared/Utilities.js +++ b/awx/ui/client/src/shared/Utilities.js @@ -189,7 +189,7 @@ angular.module('Utilities', ['RestServices', 'Utilities']) } if (form.fields[field].realName) { if (data[form.fields[field].realName]) { - scope[field + '_api_error'] = data[form.fields[field]][0]; + scope[field + '_api_error'] = data[form.fields[field].realName][0]; //scope[form.name + '_form'][form.fields[field].realName].$setValidity('apiError', false); $('[name="' + form.fields[field].realName + '"]').addClass('ng-invalid'); $('html, body').animate({scrollTop: $('[name="' + form.fields[field].realName + '"]').offset().top}, 0);