Skip to content

Commit

Permalink
fix(projectportlet): fix issue sw360#417
Browse files Browse the repository at this point in the history
  • Loading branch information
maxhbr committed May 24, 2017
1 parent c38e31d commit caeae9e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -854,6 +854,7 @@ private void prepareProjectDuplicate(RenderRequest request) {
putDirectlyLinkedProjectsInRequest(request, newProject.getLinkedProjects());
putDirectlyLinkedReleasesInRequest(request, newProject.getReleaseIdToUsage());
request.setAttribute(USING_PROJECTS, Collections.emptySet());
request.setAttribute(CUSTOM_MAP, newProject.isSetRoles() ? newProject.roles : Collections.emptyMap());
} else {
Project project = new Project();
project.setBusinessUnit(user.getDepartment());
Expand All @@ -864,6 +865,7 @@ private void prepareProjectDuplicate(RenderRequest request) {
putDirectlyLinkedReleasesInRequest(request, Collections.emptyMap());

request.setAttribute(USING_PROJECTS, Collections.emptySet());
request.setAttribute(CUSTOM_MAP, Collections.emptyMap());
}
} catch (TException e) {
log.error("Error fetching project from backend!", e);
Expand Down

0 comments on commit caeae9e

Please sign in to comment.