Merge pull request #1056 from umbraco/temp-U4-7695

U4-7695 Media items are not updated when a new crop is added to Image…
This commit is contained in:
Claus
2016-01-28 18:30:37 +01:00
5 changed files with 78 additions and 3 deletions

View File

@@ -119,6 +119,10 @@
if (mediaItem.HasProperty(propertyAlias) && mediaItem.HasValue(propertyAlias))
{
//TODO: We should change this, the default value is JObject now, this means we are ToString() ing the value,
// then re-deserializing it back to json and then to a strongly typed model.
// With a tiny bit of work we can make this more efficient since it's already a JObject.
imageCropperValue = mediaItem.GetPropertyValue<string>(propertyAlias);
// get the raw value (this will be json)