@@ -191,10 +191,10 @@ public async Task<CommandResult> Handle(MigratePagesCommand request, Cancellatio
191191 ? ( Guid ? ) null
192192 : spoiledGuidContext . EnsureNodeGuid ( ksNodeParent ) ;
193193
194- var classMapping = classMappingProvider . GetMapping ( ksNodeClass . ClassName ) ;
195- var targetClass = classMapping != null
196- ? DataClassInfoProvider . ProviderObject . Get ( classMapping . TargetClassName )
197- : DataClassInfoProvider . ProviderObject . Get ( ksNodeClass . ClassGUID ) ;
194+ var classMapping = classMappingProvider . GetMapping ( ksNodeClass . ClassName ) ;
195+ var targetClass = classMapping != null
196+ ? DataClassInfoProvider . ProviderObject . Get ( classMapping . TargetClassName )
197+ : DataClassInfoProvider . ProviderObject . Get ( ksNodeClass . ClassGUID ) ;
198198
199199 var results = mapper . Map ( new CmsTreeMapperSource (
200200 ksNode ,
@@ -276,23 +276,23 @@ await MigratePageUrlPaths(ksSite.SiteGUID,
276276 var urls = WebPageUrlPathInfo . Provider . Get ( )
277277 . WhereEquals ( nameof ( WebPageUrlPathInfo . WebPageUrlPathWebPageItemID ) , webPageItemInfo . WebPageItemID ) ;
278278
279- if ( urls . Count < 1 )
280- {
281- logger . LogWarning ( "No url for page {Page}" , new { webPageItemInfo . WebPageItemName , webPageItemInfo . WebPageItemTreePath , webPageItemInfo . WebPageItemGUID } ) ;
282- }
283- }
284- else
285- {
286- if ( nodeParentGuid is { } npg && ContentItemInfo . Provider . Get ( npg ) is { ContentItemIsReusable : true } )
287- {
288- logger . LogTrace ( "No webpage item produced for '{NodeAliasPath}' - parent is reusable, possibly converted with mapping?" , ksNode . NodeAliasPath ) ;
279+ if ( urls . Count < 1 )
280+ {
281+ logger . LogWarning ( "No url for page {Page}" , new { webPageItemInfo . WebPageItemName , webPageItemInfo . WebPageItemTreePath , webPageItemInfo . WebPageItemGUID } ) ;
282+ }
289283 }
290284 else
291285 {
292- logger . LogTrace ( "No webpage item produced for '{NodeAliasPath}'" , ksNode . NodeAliasPath ) ;
286+ if ( nodeParentGuid is { } npg && ContentItemInfo . Provider . Get ( npg ) is { ContentItemIsReusable : true } )
287+ {
288+ logger . LogTrace ( "No webpage item produced for '{NodeAliasPath}' - parent is reusable, possibly converted with mapping?" , ksNode . NodeAliasPath ) ;
289+ }
290+ else
291+ {
292+ logger . LogTrace ( "No webpage item produced for '{NodeAliasPath}'" , ksNode . NodeAliasPath ) ;
293+ }
293294 }
294295 }
295- }
296296
297297 catch ( Exception ex )
298298 {
0 commit comments