From 8198abe3fa17251100b487a49bfb00d66477bf55 Mon Sep 17 00:00:00 2001 From: Chris Meyers Date: Tue, 24 Jan 2017 15:58:59 -0500 Subject: [PATCH] join array of emails using '\n' when displaying * Don't ASSume user email addresses don't contain , * Allows email addresses to contain , --- awx/ui/client/src/notifications/edit/edit.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui/client/src/notifications/edit/edit.controller.js b/awx/ui/client/src/notifications/edit/edit.controller.js index 0126416555..7e11d76245 100644 --- a/awx/ui/client/src/notifications/edit/edit.controller.js +++ b/awx/ui/client/src/notifications/edit/edit.controller.js @@ -94,7 +94,7 @@ export default ['Rest', 'Wait', if (form.fields[fld].name === 'headers') { $scope[fld] = JSON.stringify($scope[fld], null, 2); } else { - $scope[fld] = $scope[fld].toString().replace(/,/g, '\n'); + $scope[fld] = $scope[fld].join('\n'); } } }