Lots of work on U4-2722 Change Property Editors over to use unique alias instead of GUID

it compiles but i haven't had time to test anything yet, will start all unit testing/fixing tomorrow, just needed to save this work somewhere.
This commit is contained in:
Shannon
2013-09-05 18:38:54 +10:00
parent e4cb079ae1
commit 45dabd6293
41 changed files with 716 additions and 331 deletions

View File

@@ -438,8 +438,7 @@ namespace Umbraco.Core.Models
Resize(fs, fileName, extension, 100, "thumb", originalImage);
//Look up Prevalues for this upload datatype - if it is an upload datatype
var uploadFieldId = new Guid(Constants.PropertyEditors.UploadField);
if (property.PropertyType.DataTypeId == uploadFieldId)
if (property.PropertyType.PropertyEditorAlias == Constants.PropertyEditors.UploadFieldAlias)
{
//Get Prevalues by the DataType's Id: property.PropertyType.DataTypeId
var values = ApplicationContext.Current.Services.DataTypeService.GetPreValuesByDataTypeId(property.PropertyType.DataTypeDefinitionId);