From 7ad94dbcca8c68fa3bd29f3a42e797fa8bdce7a0 Mon Sep 17 00:00:00 2001 From: Tilo Villwock Date: Mon, 11 Nov 2024 10:54:48 +0100 Subject: [PATCH] #3216 Added check for an existing release to fix save bug --- .../views/data-package-edit-or-create.controller.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/mdm-frontend/src/app/legacy/datapackagemanagement/views/data-package-edit-or-create.controller.js b/mdm-frontend/src/app/legacy/datapackagemanagement/views/data-package-edit-or-create.controller.js index b24e68cd59..511bca8e01 100644 --- a/mdm-frontend/src/app/legacy/datapackagemanagement/views/data-package-edit-or-create.controller.js +++ b/mdm-frontend/src/app/legacy/datapackagemanagement/views/data-package-edit-or-create.controller.js @@ -498,7 +498,10 @@ angular.module('metadatamanagementApp') ctrl.saveDataPackage = function() { if ($scope.dataPackageForm.$valid) { - if (CurrentProjectService.getCurrentProject().release.isPreRelease) { + if (CurrentProjectService.getCurrentProject() && + CurrentProjectService.getCurrentProject().release && + CurrentProjectService.getCurrentProject().release.isPreRelease) + { CommonDialogsService.showConfirmEditPreReleaseDialog( 'global.common-dialogs' + '.confirm-edit-pre-released-project.title',