diff --git a/themes/src/main/resources/theme/base/admin/resources/js/authz/authz-controller.js b/themes/src/main/resources/theme/base/admin/resources/js/authz/authz-controller.js
index e6f7d5c..5989f7d 100644
--- a/themes/src/main/resources/theme/base/admin/resources/js/authz/authz-controller.js
+++ b/themes/src/main/resources/theme/base/admin/resources/js/authz/authz-controller.js
@@ -2286,6 +2286,7 @@ module.service("PolicyController", function($http, $route, $location, ResourceSe
var policy = angular.copy(data);
$scope.changed = $scope.historyBackOnSaveOrCancel || PolicyController.isBackNewAssociatedPolicy();
+ $scope.policy = angular.copy(policy);
if (PolicyController.isBackNewAssociatedPolicy()) {
if (delegate.onRestoreState) {
@@ -2296,8 +2297,6 @@ module.service("PolicyController", function($http, $route, $location, ResourceSe
delegate.onInitUpdate(policy);
}
- $scope.policy = angular.copy(policy);
-
$scope.$watch('policy', function() {
if (!angular.equals($scope.policy, policy)) {
$scope.changed = true;