Merge remote-tracking branch 'origin/v8/dev' into netcore/dev

This commit is contained in:
Bjarke Berg
2020-08-25 14:00:59 +02:00
976 changed files with 9591 additions and 4253 deletions

View File

@@ -13,7 +13,7 @@ namespace Umbraco.Web.PropertyEditors
[DataEditor(
Constants.PropertyEditors.Aliases.Boolean,
EditorType.PropertyValue | EditorType.MacroParameter,
"Checkbox",
"Toggle",
"boolean",
ValueType = ValueTypes.Integer,
Group = Constants.PropertyEditors.Groups.Common,

View File

@@ -7,7 +7,8 @@ namespace Umbraco.Web.PropertyEditors
{
public override IDictionary<string, object> DefaultConfiguration => new Dictionary<string, object>
{
{"entityType", "User"}
{ "entityType", "User" },
{ "multiPicker", "0" }
};
}
}

View File

@@ -8,8 +8,8 @@ namespace Umbraco.Web.PropertyEditors
{
[DataEditor(
Constants.PropertyEditors.Aliases.UserPicker,
"User picker",
"entitypicker",
"User Picker",
"userpicker",
ValueType = ValueTypes.Integer,
Group = Constants.PropertyEditors.Groups.People,
Icon = Constants.Icons.User)]

View File

@@ -31,6 +31,8 @@ namespace Umbraco.Web.PropertyEditors.ValueConverters
public override object ConvertSourceToIntermediate(IPublishedElement owner, IPublishedPropertyType propertyType, object source, bool preview)
{
if (source == null) return null;
var attemptConvertInt = source.TryConvertTo<int>();
if (attemptConvertInt.Success)
return attemptConvertInt.Result;