Oops, fixes issue with attemping to reduce code but the 'section' parameter isn't the same in the config 'type' so needs to be manually applied like it was before. Fixes MultipleMediaPickerPropertyEditor to be multiple by default (is a bug in current versions too)

This commit is contained in:
Shannon
2017-02-13 19:57:21 +11:00
parent 2652a583e0
commit 90b43584d2
2 changed files with 5 additions and 4 deletions

View File

@@ -32,7 +32,8 @@ angular.module('umbraco')
}
$scope.openContentPicker = function() {
$scope.treePickerOverlay = config;
$scope.treePickerOverlay = config;
$scope.treePickerOverlay.section = config.type;
$scope.treePickerOverlay.view = "treePicker";
$scope.treePickerOverlay.show = true;

View File

@@ -7,12 +7,12 @@ namespace Umbraco.Web.PropertyEditors
{
[Obsolete("This editor is obsolete, use MultipleMediaPickerPropertyEditor2 instead which stores UDI")]
[PropertyEditor(Constants.PropertyEditors.MultipleMediaPickerAlias, "(Obsolete) Media Picker", "mediapicker", Group = "media", Icon = "icon-pictures-alt-2", IsDeprecated = true)]
public class MultipleMediaPickerPropertyEditor : MediaPickerPropertyEditor
public class MultipleMediaPickerPropertyEditor : MediaPickerPropertyEditor2
{
public MultipleMediaPickerPropertyEditor()
{
//clear the pre-values so it defaults to a multiple picker.
InternalPreValues.Clear();
//default it to multi picker
InternalPreValues["multiPicker"] = "1";
}
/// <summary>