reverted this line, cause for some wierd reason this line works, and corrected one ruins the feature. Super wierd, i guess the person writting this was just lucky to hit something that works. Need to look into what is going on here.

This commit is contained in:
Niels Lyngsø
2019-03-08 14:24:54 +01:00
parent 979a166b41
commit 171cae5fca

View File

@@ -50,7 +50,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.CheckboxListContro
//get all of the same values between the arrays
var same = _.intersection($scope.model.value, selectedVals);
//if the lengths are the same as the value, then we are in sync, just exit
if (same.length === $scope.model.value.length && same.length === selectedVals.length) {
if (same.length == $scope.model.value.length === selectedVals.length) {
return;
}