From f9b37714890d507caf530f116f02a9e59891c436 Mon Sep 17 00:00:00 2001 From: Anurag Awasthi Date: Thu, 1 Aug 2019 14:17:47 +0530 Subject: [PATCH] Add usernames to map for remove operations as well --- ui/scripts/templates.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/scripts/templates.js b/ui/scripts/templates.js index d4042a0a71d..6124ab13c1b 100644 --- a/ui/scripts/templates.js +++ b/ui/scripts/templates.js @@ -1710,7 +1710,7 @@ var projectsByIds = {}; $.each(jsonProjects.listprojectsresponse.project, function(idx, project) { // Only add current domain's projects for add operation as update template permissions supports that - if (project.domainid === g_domainid && operation === "add") { + if ((project.domainid === g_domainid && operation === "add") || operation === "remove") { projectsByIds[project.id] = { projName: project.name, hasPermission: false