Browse Source

Merge pull request #3238 in DEC/decision-webui-dcm from release/10.0 to bugfix/10.0

* commit '1478b8b7f9ed4d062f30ca8b9901bee16e1418c7':
  BI-95685 fix: 平台复制链接时需要重建 identity
bugfix/10.0
superman 3 years ago
parent
commit
ec9f5823d1
  1. 9
      src/modules/pages/maintain/forms/form.ts

9
src/modules/pages/maintain/forms/form.ts

@ -139,9 +139,12 @@ export class MaintainForm extends BI.Widget {
this.isEdit = true;
this.connectionName = this.model.connectionSelectedOne.connectionName;
const connection = BI.clone(this.model.connectionSelectedOne);
const { database, driver } = connection.connectionData as ConnectionJDBC;
(connection.connectionData as ConnectionJDBC).database = getJdbcDatabaseType(database, driver).databaseType;
connectionData = connection.connectionData as ConnectionJDBC;
const { database, driver } = connectionData;
connectionData.database = getJdbcDatabaseType(database, driver).databaseType;
if (this.model.isCopy) {
connectionData.identity = BI.UUID();
}
return connection;
}

Loading…
Cancel
Save