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

Commit

Permalink
Fix version status while copying
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Eng committed Aug 8, 2014
1 parent 4a853b7 commit 01b9df8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
3 changes: 1 addition & 2 deletions zanata-war/src/main/java/org/zanata/action/VersionHome.java
Expand Up @@ -336,8 +336,7 @@ public void copyVersion() {
conversationScopeMessages
.setMessage(FacesMessage.SEVERITY_INFO, msgs.
format("jsf.copyVersion.started",
getInstance().getSlug(),
copyFromVersionSlug));
getInstance().getSlug(), copyFromVersionSlug));
}

@Override
Expand Down
@@ -1,9 +1,9 @@
package org.zanata.service.impl;

import java.util.Collections;
import java.util.Map;
import javax.annotation.Nonnull;

import com.google.common.base.Optional;
import com.google.common.base.Stopwatch;
import com.google.common.collect.Lists;
import lombok.extern.slf4j.Slf4j;
import org.jboss.seam.ScopeType;
import org.jboss.seam.annotations.AutoCreate;
import org.jboss.seam.annotations.In;
Expand All @@ -30,11 +30,10 @@
import org.zanata.service.CopyVersionService;
import org.zanata.service.VersionStateCache;
import org.zanata.util.JPACopier;
import com.google.common.base.Optional;
import com.google.common.base.Stopwatch;
import com.google.common.collect.Lists;

import lombok.extern.slf4j.Slf4j;
import javax.annotation.Nonnull;
import java.util.Collections;
import java.util.Map;

/**
* @author Alex Eng <a href="mailto:aeng@redhat.com">aeng@redhat.com</a>
Expand Down Expand Up @@ -251,7 +250,7 @@ protected int copyTextFlowTargetBatch(Long tfId, Long newTfId,
public HProjectIteration copyVersionSettings(
HProjectIteration version, HProjectIteration newVersion) {
try {
JPACopier.copyBean(version, newVersion, "slug", "project",
JPACopier.copyBean(version, newVersion, "slug", "status", "project",
"children", "documents", "allDocuments");
} catch (Exception e) {
log.warn("exception during copy version", e);
Expand Down

0 comments on commit 01b9df8

Please sign in to comment.