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:
Shannon
2013-09-06 15:27:38 +10:00
parent b1b7a330b5
commit 78741bf134
21 changed files with 46 additions and 361 deletions

View File

@@ -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);
}
}