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

@@ -21,7 +21,7 @@ namespace Umbraco.Web.Models.Mapping
/// <returns></returns>
protected override T ConvertCore(Property property)
{
var editor = PropertyEditorResolver.Current.GetById(property.PropertyType.DataTypeId);
var editor = PropertyEditorResolver.Current.GetByAlias(property.PropertyType.PropertyEditorAlias);
if (editor == null)
{
//TODO: Remove this check as we shouldn't support this at all!