You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by le...@apache.org on 2021/12/28 09:14:06 UTC

[dolphinscheduler] branch 2.0.2-prepare updated: fix workflow copy (#7677)

This is an automated email from the ASF dual-hosted git repository.

leonbao pushed a commit to branch 2.0.2-prepare
in repository https://gitbox.apache.org/repos/asf/dolphinscheduler.git


The following commit(s) were added to refs/heads/2.0.2-prepare by this push:
     new 5452580  fix workflow copy (#7677)
5452580 is described below

commit 54525806df6a3f6dd1c6077ffd7f8024046a6c90
Author: JinYong Li <42...@users.noreply.github.com>
AuthorDate: Tue Dec 28 17:13:58 2021 +0800

    fix workflow copy (#7677)
---
 .../dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java  | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
index 237148c..10325c9 100644
--- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
+++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/ProcessDefinitionServiceImpl.java
@@ -1387,6 +1387,7 @@ public class ProcessDefinitionServiceImpl extends BaseServiceImpl implements Pro
                         putMsg(result, Status.NOT_SUPPORT_COPY_TASK_TYPE, taskDefinitionLog.getTaskType());
                         throw new ServiceException(Status.NOT_SUPPORT_COPY_TASK_TYPE);
                     }
+                    taskDefinitionLog.setProjectCode(targetProjectCode);
                     taskDefinitionLog.setCode(0L);
                     taskDefinitionLog.setVersion(0);
                     taskDefinitionLog.setName(taskDefinitionLog.getName() + "_copy_" + DateUtils.getCurrentTimeStamp());