diff --git a/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js b/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js index fc397ec..6b15064 100644 --- a/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js +++ b/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/EstudoTecnicoController.js @@ -168,14 +168,6 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository }); }; - $scope.setRascunho = function(rascunho){ - - $scope.workspace.objetoScope = $scope.contrato; - $scope.startTimerIntervalSaveDraft($scope.workspace); - $scope.edit = true; - $scope.setLoading(false); - }; - //INICIO DE METODOS REFERENTES AOS RELATORIOS $scope.gerarRelatorioEstudoTecnico = function() { @@ -215,6 +207,7 @@ citApp.controller('EstudoTecnicoController', ['$scope', 'EstudoTecnicoRepository } }); + $scope.estudoTecnico.rascunho = $scope.workspace.rascunho ? $scope.workspace.rascunho.id : null; EstudoTecnicoRepository.save($scope.estudoTecnico).then(function(result) { $scope.estudoTecnico = result.originalElement; diff --git a/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js b/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js index d63841f..18c0f0f 100644 --- a/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js +++ b/cit-contratos-web/src/main/webapp/assets/js/angular/custom/controller/TermoReferenciaController.js @@ -685,6 +685,7 @@ citApp.controller('TermoReferenciaController', ['$scope', $scope.setLoadingSalva(true); + $scope.termoReferencia.rascunho = $scope.workspace.rascunho ? $scope.workspace.rascunho.id : null; TermoReferenciaRepository.save($scope.termoReferencia).then(function(result) { $scope.termoReferencia = result.originalElement; -- libgit2 0.21.2