Fix U4-4779: Media Picker not working as single picker
This commit is contained in:
@@ -4,7 +4,7 @@ angular.module('umbraco').controller("Umbraco.PropertyEditors.MediaPickerControl
|
||||
function($rootScope, $scope, dialogService, mediaResource, mediaHelper, $timeout) {
|
||||
|
||||
//check the pre-values for multi-picker
|
||||
var multiPicker = $scope.model.config.multiPicker !== '0' ? true : false;
|
||||
var multiPicker = $scope.model.config.multiPicker && $scope.model.config.multiPicker !== '0' ? true : false;
|
||||
|
||||
if (!$scope.model.config.startNodeId)
|
||||
$scope.model.config.startNodeId = -1;
|
||||
@@ -110,4 +110,4 @@ angular.module('umbraco').controller("Umbraco.PropertyEditors.MediaPickerControl
|
||||
setupViewModel();
|
||||
};
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user