diff --git a/openslides/motions/static/js/motions/motion-services.js b/openslides/motions/static/js/motions/motion-services.js index 47a2dd632..ce96638c1 100644 --- a/openslides/motions/static/js/motions/motion-services.js +++ b/openslides/motions/static/js/motions/motion-services.js @@ -78,10 +78,6 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions', motion = _motion; obj.lineBrokenText = motion.getTextWithLineBreaks($scope.version); obj.originalHtml = obj.lineBrokenText; - - if (motion.state.versioning && Config.get('motions_allow_disable_versioning').value) { - obj.trivialChange = true; - } }; diff --git a/openslides/motions/static/js/motions/site.js b/openslides/motions/static/js/motions/site.js index 3c0788d00..39f233ff8 100644 --- a/openslides/motions/static/js/motions/site.js +++ b/openslides/motions/static/js/motions/site.js @@ -1433,6 +1433,7 @@ angular.module('OpenSlidesApp.motions.site', [ // set initial values for form model by create deep copy of motion object // so list/detail view is not updated while editing $scope.model = angular.copy(motion); + $scope.model.disable_versioning = false; $scope.model.more = false; // get all form fields @@ -1455,10 +1456,9 @@ angular.module('OpenSlidesApp.motions.site', [ // get reason of latest version $scope.formFields[i].defaultValue = motion.getReason(-1); } - if ($scope.formFields[i].key == "disable_versioning" && - Config.get('motions_allow_disable_versioning')) { - // check current state if versioning is active - if (motion.state.versioning) { + if ($scope.formFields[i].key == "disable_versioning") { + if (Config.get('motions_allow_disable_versioning').value && motion.state.versioning) { + // check current state if versioning is active $scope.formFields[i].hide = false; } }