Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Merge branch 'release' into integration/master
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Oct 28, 2014
2 parents 7b69bd2 + 689ed8f commit 240a396
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions zanata-war/src/main/java/org/zanata/action/VersionHome.java
Expand Up @@ -126,7 +126,7 @@ public class VersionHome extends SlugHome<HProjectIteration> {

@Getter
@Setter
private boolean copyFromVersion = false;
private boolean copyFromVersion = true;

@Getter
@Setter
Expand Down Expand Up @@ -161,8 +161,11 @@ public void init(boolean isNewInstance) {
if (projectType != null) {
selectedProjectType = projectType.name();
}
setDefaultCopyFromVersion();
if(StringUtils.isEmpty(copyFromVersionSlug)) {
setDefaultCopyFromVersion();
}
} else {
copyFromVersion = false;
ProjectType versionProjectType = getInstance().getProjectType();
if (versionProjectType != null) {
selectedProjectType = versionProjectType.name();
Expand Down

0 comments on commit 240a396

Please sign in to comment.