A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/umbraco/Umbraco.Cloud.Issues/issues/20 below:

Umbraco.DropDown.Flexible data type not syncing · Issue #20 · umbraco/Umbraco.Cloud.Issues · GitHub

When the (relatively) new built-in Umbraco.DropDown.Flexible data type is used (all other 4 are now depreciated in umbraco/Umbraco-CMS#2502), the selected values aren't synced between environments.

Reproduction Expected result

The property on the destination environment should have the same selected value as the source.

Actual result

The property on the destination environment doesn't have a selected value.

Workaround

Fixing this issue is very simple: just add Umbraco.DropDown.Flexible (or actually the Constants.PropertyEditors.DropDownListFlexibleAlias constant) to the property editor aliases in the PrevalueValueConnector.

As a temporary workaround, I'm currently adding this class to our projects:

public class DropdownFlexiblePrevalueValueConnector : PrevalueValueConnector
{
    public DropdownFlexiblePrevalueValueConnector(IDataTypeService dataTypeService, ILogger logger)
        : base(dataTypeService, logger)
    { }

    public override IEnumerable<string> PropertyEditorAliases => new string[] { "Umbraco.DropDown.Flexible" };
}

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4