From 9a6a0b00479e8720271f16a249eee9de0ab82419 Mon Sep 17 00:00:00 2001 From: "John R. Supplee" Date: Mon, 8 Feb 2021 18:48:59 +0200 Subject: [PATCH] Fix bug in adding new users New `importUsernames` was not being parsed into an array before calling `setCreateUser()` Issue #3539 --- client/components/settings/peopleBody.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/components/settings/peopleBody.js b/client/components/settings/peopleBody.js index 9f4886190..e6629867b 100644 --- a/client/components/settings/peopleBody.js +++ b/client/components/settings/peopleBody.js @@ -567,9 +567,9 @@ Template.newUserPopup.events({ const isAdmin = templateInstance.find('.js-profile-isadmin').value.trim(); const isActive = templateInstance.find('.js-profile-isactive').value.trim(); const email = templateInstance.find('.js-profile-email').value.trim(); - const importUsernames = templateInstance - .find('.js-import-usernames') - .value.trim(); + const importUsernames = Users.parseImportUsernames( + templateInstance.find('.js-import-usernames').value, + ); Meteor.call( 'setCreateUser',