diff --git a/api-test/frontend/src/business/automation/scenario/common/JDBCProcessorContent.vue b/api-test/frontend/src/business/automation/scenario/common/JDBCProcessorContent.vue index 76225d7b99..dd367f9cc2 100644 --- a/api-test/frontend/src/business/automation/scenario/common/JDBCProcessorContent.vue +++ b/api-test/frontend/src/business/automation/scenario/common/JDBCProcessorContent.vue @@ -231,6 +231,8 @@ export default { }); if (environmentId) { this.request.environmentId = environmentId; + } else { + this.request.environmentId = null; } this.initDataSource(undefined, undefined, targetDataSourceName); }); diff --git a/api-test/frontend/src/business/definition/components/EditCompleteContainer.vue b/api-test/frontend/src/business/definition/components/EditCompleteContainer.vue index 7fcec33e97..ad9979df34 100644 --- a/api-test/frontend/src/business/definition/components/EditCompleteContainer.vue +++ b/api-test/frontend/src/business/definition/components/EditCompleteContainer.vue @@ -259,6 +259,7 @@ export default { if (stepArray[i] && stepArray[i].authManager && !stepArray[i].authManager.clazzName) { stepArray[i].authManager.clazzName = TYPE_TO_C.get(stepArray[i].authManager.type); } + stepArray[i].projectId = this.currentApi.projectId; if (stepArray[i].type === 'Assertions' && !stepArray[i].document) { stepArray[i].document = { type: 'JSON', diff --git a/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue b/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue index 7854017f44..bcfc0c1abe 100644 --- a/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue +++ b/api-test/frontend/src/business/definition/components/case/ApiCaseItem.vue @@ -405,6 +405,9 @@ export default { this.apiCase.request.hashTree[index].document.nodeType = 'Case'; this.apiCase.request.hashTree[index].document.apiDefinitionId = this.apiCase.apiDefinitionId; } + this.apiCase.request.hashTree.forEach(item =>{ + item.projectId = this.apiCase.projectId; + }) } this.readonly = !hasPermissions('PROJECT_API_DEFINITION:READ+EDIT_CASE', 'PROJECT_API_DEFINITION:READ+CREATE_CASE', 'PROJECT_API_DEFINITION:READ+COPY_CASE'); if (this.apiCase && this.apiCase.id) {