U4-5540 - property value converter for TextBoxMultiple

This commit is contained in:
Stephan
2014-09-23 14:54:09 +02:00
parent 9dd803fb73
commit ca8a819590

View File

@@ -10,9 +10,15 @@ namespace Umbraco.Core.PropertyEditors.ValueConverters
[PropertyValueCache(PropertyCacheValue.All, PropertyCacheLevel.Content)]
public class TextStringValueConverter : PropertyValueConverterBase
{
private readonly static string[] PropertyTypeAliases =
{
Constants.PropertyEditors.TextboxAlias,
Constants.PropertyEditors.TextboxMultipleAlias
};
public override bool IsConverter(PublishedPropertyType propertyType)
{
return Constants.PropertyEditors.TextboxAlias.Equals(propertyType.PropertyEditorAlias);
return PropertyTypeAliases.Contains(propertyType.PropertyEditorAlias);
}
public override object ConvertDataToSource(PublishedPropertyType propertyType, object source, bool preview)