Fixes converting the Umbraco.DropDownMultiple to a multiple drop down, fixes boolean logic on the js single drop down

This commit is contained in:
Shannon
2018-10-30 02:05:43 +11:00
parent 15eaa33e08
commit 0d0d26d3e9
2 changed files with 2 additions and 2 deletions

View File

@@ -77,7 +77,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.DropdownFlexibleCo
// if we run in single mode we'll store the value in a local variable
// so we can pass an array as the model as our PropertyValueEditor expects that
$scope.model.singleDropdownValue = "";
if (Object.toBoolean($scope.model.config.multiple)) {
if (!Object.toBoolean($scope.model.config.multiple)) {
$scope.model.singleDropdownValue = Array.isArray($scope.model.value) ? $scope.model.value[0] : $scope.model.value;
}