Skip to content

Commit

Permalink
SAK-40802 NPE when importing Forums from site
Browse files Browse the repository at this point in the history
  • Loading branch information
bgarciaentornos authored and Miguel Pellicer committed Nov 5, 2018
1 parent f641d91 commit c950c9d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -540,12 +540,12 @@ public Map<String, String> transferCopyEntitiesRefMigrator(String fromContext, S

if (!getImportAsDraft())
{
forumManager.saveDiscussionForum(newForum, newForum.getDraft(), false, currentUserId);
newForum = forumManager.saveDiscussionForum(newForum, newForum.getDraft(), false, currentUserId);
}
else
{
newForum.setDraft(Boolean.TRUE);
forumManager.saveDiscussionForum(newForum, true, false, currentUserId);
newForum = forumManager.saveDiscussionForum(newForum, true, false, currentUserId);
}

//add the ref's for the old and new forum
Expand Down

0 comments on commit c950c9d

Please sign in to comment.