Skip to content
This repository was archived by the owner on Apr 22, 2022. It is now read-only.

Commit 42bf38f

Browse files
committed
clear forms before open create mapping/mapping group windows
1 parent 6e0d5b9 commit 42bf38f

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/main/webapp/js/controllers.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2719,6 +2719,8 @@ var D2RQMappingCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Ac
27192719
$scope.newMappingGroup = function() {
27202720
$scope.mappingGroupForm.$setPristine();
27212721
$scope.mgroup = angular.copy(emptyMappingGroup);
2722+
$scope.ontologies = [];
2723+
$scope.datasources = [];
27222724
adding = false;
27232725
$http.get(d2rqServiceUrl+"/ontologies/metadata/get")
27242726
.then(function(response) {
@@ -2897,7 +2899,7 @@ var D2RQMappingCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Ac
28972899
headers: {"Content-Type":"application/json; charset=utf-8"}
28982900
}).then(function(response) {
28992901
var result = response.data;
2900-
var columns = []
2902+
var columns = [];
29012903
for (var ind in result) {
29022904
columns.push(result[ind].column);
29032905
}
@@ -2967,6 +2969,10 @@ var D2RQMappingCtrl = function($scope, $http, $q, flash, ServerErrorResponse, Ac
29672969
$scope.mappingForm.$setPristine();
29682970
$scope.mapping = angular.copy(emptyMapping);
29692971

2972+
$scope.ontologyClasses = [];
2973+
$scope.tables = [];
2974+
$scope.tableColumns = [];
2975+
29702976
$scope.mapping.group = mappingGroup;
29712977

29722978
$http.get(d2rqServiceUrl+"/data/groups/" + mappingGroup.compositeData + "/metadata/get")

0 commit comments

Comments
 (0)