Adjust to 7.6 scheme for upload and image croppers

Fixes #397, at least for newly created sites.
This commit is contained in:
kjac
2017-06-06 23:14:40 +02:00
parent 4c7496840d
commit 3d7ddb58c2
@@ -219,6 +219,15 @@ namespace Archetype.PropertyEditors
}
}
}
// #397 - pass along "cuid" and "puid" (part of the Umbraco 7.6 scheme)
if(editorValue.AdditionalData.ContainsKey("cuid"))
{
additionalData["cuid"] = editorValue.AdditionalData["cuid"];
}
if(editorValue.AdditionalData.ContainsKey("puid"))
{
additionalData["puid"] = editorValue.AdditionalData["puid"];
}
var propData = new ContentPropertyData(propDef.Value, preValues, additionalData);
var propEditor = PropertyEditorResolver.Current.GetByAlias(dtd.PropertyEditorAlias);
// make sure to send the current property value (if any) to the PE ValueEditor