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
// if we end up here, the property DTO is bound to a language that no longer exists. this is an error scenario,
180
-
// and we can't really handle it in any other way than logging; in all likelihood this is an old property version,
181
-
// and it won't cause any runtime issues
182
-
_logger.LogWarning(
183
-
" - property data with id: {propertyDataId} references a language that does not exist - language id: {languageId} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
184
-
propertyDataDto.Id,
185
-
propertyDataDto.LanguageId,
186
-
propertyType.Name,
187
-
propertyType.Id,
188
-
propertyType.Alias);
189
-
return;
190
-
}
181
+
if(cultureisnull&&propertyType.VariesByCulture())
182
+
{
183
+
// if we end up here, the property DTO is bound to a language that no longer exists. this is an error scenario,
184
+
// and we can't really handle it in any other way than logging; in all likelihood this is an old property version,
185
+
// and it won't cause any runtime issues
186
+
_logger.LogWarning(
187
+
" - property data with id: {propertyDataId} references a language that does not exist - language id: {languageId} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
" - value editor yielded a null value for property data with id: {propertyDataId} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
201
-
propertyDataDto.Id,
202
-
propertyType.Name,
203
-
propertyType.Id,
204
-
propertyType.Alias);
205
-
updatesToSkip.Add(update);
206
-
return;
207
-
208
-
casestringstrwhenstr.IsNullOrWhiteSpace():
209
-
// indicates either an empty block editor or corrupt block editor data - we can't do anything about either here
" - value editor did not yield a valid ToEditor value for property data with id: {propertyDataId} - the value type was {valueType} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
202
+
casenull:
203
+
_logger.LogWarning(
204
+
" - value editor yielded a null value for property data with id: {propertyDataId} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
226
205
propertyDataDto.Id,
227
-
toEditorValue.GetType(),
228
206
propertyType.Name,
229
207
propertyType.Id,
230
208
propertyType.Alias);
231
209
updatesToSkip.Add(update);
232
210
return;
211
+
212
+
casestringstrwhenstr.IsNullOrWhiteSpace():
213
+
// indicates either an empty block editor or corrupt block editor data - we can't do anything about either here
" - value editor did not yield a valid ToEditor value for property data with id: {propertyDataId} - the value type was {valueType} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
if(dbValueis not stringstringValue||stringValue.DetectIsJson()isfalse)
245
-
{
246
-
_logger.LogError(
247
-
" - value editor did not yield a valid JSON string as FromEditor value property data with id: {propertyDataId} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
if(dbValueis not stringstringValue||stringValue.DetectIsJson()isfalse)
249
+
{
250
+
_logger.LogError(
251
+
" - value editor did not yield a valid JSON string as FromEditor value property data with id: {propertyDataId} (property type: {propertyTypeName}, id: {propertyTypeId}, alias: {propertyTypeAlias})",
0 commit comments