DataType refactoring

This commit is contained in:
Stephan
2018-01-15 17:32:45 +01:00
parent 2f7f22961b
commit e30d8f79ef
62 changed files with 516 additions and 926 deletions

View File

@@ -40,9 +40,13 @@ namespace Umbraco.Core.Models.PublishedContent
// fixme - we need a more efficient dataTypeService way of getting these
// fixme - would be nice not to pass editorAlias but annoying for tests?
//var datatype = _dataTypeService.GetDataTypeDefinitionById(id);
var collection = _dataTypeService.GetPreValuesCollectionByDataTypeId(id);
var editor = _propertyEditors[editorAlias /*datatype.PropertyEditorAlias*/];
return editor.MapDataTypeConfiguration(collection);
//var collection = _dataTypeService.GetPreValuesCollectionByDataTypeId(id);
var dataType = _dataTypeService.GetDataType(id);
return dataType.Configuration;
// fixme - mapping done in dataTypeService? or should it be on-demand in DataType?
//var editor = _propertyEditors[editorAlias /*datatype.PropertyEditorAlias*/];
//return editor.MapDataTypeConfiguration(dataType.Configuration);
}
}
}