From 73620834637d6f43c2b5a9b565d5460a04c6f788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vincent=20Membr=C3=A9?= Date: Wed, 1 Jul 2020 10:28:23 +0200 Subject: [PATCH] Fixes #17881: keep resource information from api when saving technique --- builder/js/ncf.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/builder/js/ncf.js b/builder/js/ncf.js index 67130c778..a40474bde 100644 --- a/builder/js/ncf.js +++ b/builder/js/ncf.js @@ -1421,11 +1421,11 @@ $scope.onImportFileChange = function (fileEl) { savedTechnique.isClone = false; $scope.originalTechnique = angular.copy(savedTechnique); // Resources will be reset by resource manager if original technique resources are undefined - $scope.originalTechnique.resources = undefined; $scope.selectedTechnique = angular.copy(savedTechnique); // We will lose the link between the selected method and the technique, to prevent unintended behavior, close the edit method panel $scope.ui.selectedMethods = []; } + updateFileManagerConf() $scope.resetFlags(); }