From 015ed7ffa6bb736ef9956210997baaf77ffd2967 Mon Sep 17 00:00:00 2001 From: kyoty Date: Wed, 16 Jun 2021 17:29:17 +0800 Subject: [PATCH] [Bug Fix] Edit the note of existed datasource does't work. (#5642) * Update DataSourceServiceImpl.java * Update DataSourceServiceImpl.java --- .../api/service/impl/DataSourceServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java index 8869db366e..382339a240 100644 --- a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java +++ b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/impl/DataSourceServiceImpl.java @@ -164,7 +164,7 @@ public class DataSourceServiceImpl extends BaseServiceImpl implements DataSource Date now = new Date(); dataSource.setName(dataSource.getName().trim()); - dataSource.setNote(dataSource.getNote()); + dataSource.setNote(dataSourceParam.getNote()); dataSource.setUserName(loginUser.getUserName()); dataSource.setType(dataSource.getType()); dataSource.setConnectionParams(JSONUtils.toJsonString(connectionParam));