From 85ba41dd06dc0612d4f0906b63a865edc24b40cb Mon Sep 17 00:00:00 2001 From: Shannon Date: Thu, 19 Mar 2015 15:50:58 +1100 Subject: [PATCH] Fixes: U4-5435 Dropdown list multiple, publish keys - single item --- .../PropertyEditors/PublishValuesMultipleValueEditor.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Umbraco.Web/PropertyEditors/PublishValuesMultipleValueEditor.cs b/src/Umbraco.Web/PropertyEditors/PublishValuesMultipleValueEditor.cs index eb746405b2..3d68936118 100644 --- a/src/Umbraco.Web/PropertyEditors/PublishValuesMultipleValueEditor.cs +++ b/src/Umbraco.Web/PropertyEditors/PublishValuesMultipleValueEditor.cs @@ -39,14 +39,17 @@ namespace Umbraco.Web.PropertyEditors /// public override string ConvertDbToString(Property property, PropertyType propertyType, IDataTypeService dataTypeService) { + //publishing ids, so just need to return the value as-is if (_publishIds) { - return base.ConvertDbToString(property, propertyType, dataTypeService); + return property.Value.ToString(); } + //get the multiple ids var selectedIds = property.Value.ToString().Split(new[] {','}, StringSplitOptions.RemoveEmptyEntries); if (selectedIds.Any() == false) { + //nothing there return base.ConvertDbToString(property, propertyType, dataTypeService); }