Skip to content

Commit

Permalink
code: Prevent lazy loading model bug for some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
doortts committed Mar 15, 2017
1 parent 1e733d2 commit 4b37708
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/utils/TemplateHelper.scala
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,7 @@ object TemplateHelper {
}

def urlToPostNewComment(thread: CommentThread) = {
thread.project.refresh()
if(thread.isOnPullRequest){
routes.PullRequestApp.newComment(thread.project.owner, thread.project.name, thread.pullRequest.id, _getCommitId(thread))
} else {
Expand Down

0 comments on commit 4b37708

Please sign in to comment.