From 80c629bf3e2053511af9841be6926caedbd224e8 Mon Sep 17 00:00:00 2001 From: John Mitchell Date: Wed, 14 Oct 2015 19:53:58 -0400 Subject: [PATCH] fixed the console errors for the sources scope --- awx/ui/client/src/helpers/Groups.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/awx/ui/client/src/helpers/Groups.js b/awx/ui/client/src/helpers/Groups.js index a15fc5f03e..a0e42c1fd3 100644 --- a/awx/ui/client/src/helpers/Groups.js +++ b/awx/ui/client/src/helpers/Groups.js @@ -1036,9 +1036,9 @@ angular.module('GroupsHelper', [ 'RestServices', 'Utilities', listGenerator.name data.summary_fields['inventory_script'] = data.summary_fields.source_script; sources_scope.inventory_script = data.source_script; master.inventory_script = sources_scope.inventory_script; - } - - else if (data[fld] !== undefined) { + } else if (fld === "source_regions") { + sources_scope[fld] = data[fld].split(","); + } else if (data[fld] !== undefined) { sources_scope[fld] = data[fld]; master[fld] = sources_scope[fld]; }