more work on removing the GUID requirement for prop editors, removes legacy editDataType webforms editor (U4-2801 Remove legacy/un-used editDataType.aspx webforms editor)
This commit is contained in:
@@ -23,12 +23,12 @@ namespace Umbraco.Web.Models.Mapping
|
||||
internal IEnumerable<PreValueFieldDisplay> Convert(IDataTypeDefinition source)
|
||||
{
|
||||
PropertyEditor propEd = null;
|
||||
if (source.ControlId != Guid.Empty)
|
||||
if (source.PropertyEditorAlias.IsNullOrWhiteSpace() == false)
|
||||
{
|
||||
propEd = PropertyEditorResolver.Current.GetById(source.ControlId);
|
||||
propEd = PropertyEditorResolver.Current.GetByAlias(source.PropertyEditorAlias);
|
||||
if (propEd == null)
|
||||
{
|
||||
throw new InvalidOperationException("Could not find property editor with id " + source.ControlId);
|
||||
throw new InvalidOperationException("Could not find property editor with alias " + source.PropertyEditorAlias);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user