Merge pull request #2717 from joshuapease/temp-U4-11474

U4-11474: Bugfix - Umbraco.TrueFalse default value is not being stored in database
This commit is contained in:
Sebastiaan Janssen
2018-06-25 08:22:23 +02:00
committed by GitHub

View File

@@ -16,6 +16,10 @@ function booleanEditorController($scope, $rootScope, assetsService) {
setupViewModel();
if( $scope.model && !$scope.model.value ) {
$scope.model.value = ($scope.renderModel.value === true) ? '1' : '0';
}
//here we declare a special method which will be called whenever the value has changed from the server
//this is instead of doing a watch on the model.value = faster
$scope.model.onValueChanged = function (newVal, oldVal) {