From eb916d198dc3590c3d38647b3488edac4e1e27a7 Mon Sep 17 00:00:00 2001 From: Stas Vilchik Date: Mon, 20 Feb 2017 10:32:23 +0100 Subject: [PATCH] SONAR-8658 fix applying of permission template --- .../main/js/apps/permissions/project/components/PageHeader.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js b/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js index 77f48eb680c..998951466d5 100644 --- a/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js +++ b/server/sonar-web/src/main/js/apps/permissions/project/components/PageHeader.js @@ -44,7 +44,8 @@ class PageHeader extends React.Component { e.preventDefault(); e.target.blur(); const { project, loadHolders } = this.props; - new ApplyTemplateView({ project }) + const organization = project.organization ? { key: project.organization } : null; + new ApplyTemplateView({ project, organization }) .on('done', () => loadHolders(project.key)) .render(); } -- 2.39.5