You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewInvalidOperationException($"Could not resolve these content types for the Nested Content property: {string.Join(",",allContentTypes.Where(x =>x.Value==null).Select(x =>x.Key))}");
82
+
thrownewInvalidOperationException($"Could not resolve these content types for the Nested Content property: {string.Join(",",allContentTypes.Where(x =>x.Value==null).Select(x =>x.Key))}.");
72
83
}
73
84
74
85
//Ensure that these content types have dependencies added
75
86
foreach(varcontentTypeinallContentTypes.Values)
76
87
{
88
+
_logger.Debug<NestedContentValueConnector>("Adding dependency for content type {ContentType}.",contentType.Alias);
// getting Map image value umb://media/43e7401fb3cd48ceaa421df511ec703c to (nothing) - why?!
108
-
_logger.Debug<NestedContentValueConnector>("Map "+key+" value '"+row.PropertyValues[key]+"' to '"+parsedValue
109
-
+"' using "+propValueConnector.GetType()+" for "+propType);
120
+
_logger.Debug<NestedContentValueConnector>("Mapped {Key} value '{PropertyValue}' to '{ParsedValue}' using {PropertyValueConnectorType} for {PropertyType}.",key,row.PropertyValues[key],parsedValue,propertyValueConnector.GetType(),innerPropertyType.Alias);
thrownewInvalidOperationException($"Could not resolve these content types for the Nested Content property: {string.Join(",",allContentTypes.Where(x =>x.Value==null).Select(x =>x.Key))}");
163
+
thrownewInvalidOperationException($"Could not resolve these content types for the Nested Content property: {string.Join(",",allContentTypes.Where(x =>x.Value==null).Select(x =>x.Key))}.");
_logger.Debug<NestedContentValueConnector>("Mapped {Key} value '{PropertyValue}' to '{ConvertedValue}' using {PropertyValueConnectorType} for {PropertyType}.",key,innerValue,convertedValue,propertyValueConnector.GetType(),innerPropertyType.Alias);
188
210
}
189
211
else
190
212
{
191
-
row.PropertyValues[key]=rowValue;
213
+
row.PropertyValues[key]=innerValue;
214
+
_logger.Debug<NestedContentValueConnector>("{Key} value was null. Setting value as null without conversion.",key);
192
215
}
193
216
}
194
217
}
195
218
196
219
// Note: NestedContent does not use formatting when serializing JSON values.
0 commit comments