From 171cae5fca2484413f3900ea4596dade5c1e4099 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Niels=20Lyngs=C3=B8?= Date: Fri, 8 Mar 2019 14:24:54 +0100 Subject: [PATCH] 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. --- .../propertyeditors/checkboxlist/checkboxlist.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/checkboxlist/checkboxlist.controller.js b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/checkboxlist/checkboxlist.controller.js index fac14b772d..a0696e3c67 100644 --- a/src/Umbraco.Web.UI.Client/src/views/propertyeditors/checkboxlist/checkboxlist.controller.js +++ b/src/Umbraco.Web.UI.Client/src/views/propertyeditors/checkboxlist/checkboxlist.controller.js @@ -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; }