Fix for U4-2081 tinymce Image picker does not work in 6.03

This commit is contained in:
Sebastiaan Janssen
2013-04-09 11:33:35 -02:00
parent 7ae8b28466
commit e6ccd8a5b5

View File

@@ -51,18 +51,16 @@ namespace umbraco.cms.businesslogic.datatype
{
get
{
if (_controlId != Guid.Empty)
{
cms.businesslogic.datatype.controls.Factory f = new cms.businesslogic.datatype.controls.Factory();
interfaces.IDataType dt = f.DataType(_controlId);
if (_controlId == Guid.Empty)
return null;
controls.Factory factory = new controls.Factory();
var dt = factory.DataType(_controlId);
if (dt != null)
dt.DataTypeDefinitionId = Id;
return dt;
}
else
{
return null;
}
return dt;
}
set
{