Skip to content

Commit

Permalink
issue: Clear the revision history when moving from a personal project
Browse files Browse the repository at this point in the history
- personal project = user's own private project
  • Loading branch information
doortts committed Mar 16, 2017
1 parent 4b37708 commit 0032147
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion app/controllers/IssueApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,9 @@ public void run() {
final Project previous = Project.findByOwnerAndProjectName(ownerName, projectName);
if(isRequestedToOtherProject(originalIssue.project, previous)){
issue.labels = originalIssue.labels;
if(!isFromMyOwnPrivateProject(previous)){
if(isFromMyOwnPrivateProject(previous)){
issue.history = "";
} else {
addIssueMovedNotification(previous, issue);
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion app/views/issue/view.scala.html
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@
}
</a>
</div>
@if(issue.history != null){
@if(StringUtils.isNotEmpty(issue.history)){
<div class="posting-history">
<a href="#-yona-posting-history" data-toggle="modal">@Messages("change.history")</a>
@common.partial_history(issue)
Expand Down

0 comments on commit 0032147

Please sign in to comment.