From 39d3e92094ac500ebfc3174cc5d2325b787aed81 Mon Sep 17 00:00:00 2001 From: Deep Tailor Date: Thu, 4 Jan 2018 11:06:55 -0800 Subject: [PATCH] fix for Issue 1838 Remove isDirty check, always allow blocking popup when exiting edit mode --- .../commonUI/edit/src/controllers/EditObjectController.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/platform/commonUI/edit/src/controllers/EditObjectController.js b/platform/commonUI/edit/src/controllers/EditObjectController.js index a7f264d9c4..428ab06371 100644 --- a/platform/commonUI/edit/src/controllers/EditObjectController.js +++ b/platform/commonUI/edit/src/controllers/EditObjectController.js @@ -59,10 +59,7 @@ define( var removeCheck = navigationService .checkBeforeNavigation(function () { - if (isDirty(domainObject)) { - return "Continuing will cause the loss of any unsaved changes."; - } - return false; + return "Continuing will cause the loss of any unsaved changes."; }); $scope.$on('$destroy', function () {