ContentArea Items are empty after creating writable clone

Found in

EPiServer.CMS.Core 10.5.0

Fixed in

EPiServer.CMS.Core 10.6.0

Created

Mar 24, 2017

Updated

Apr 11, 2017

Area

CMS Core

State

Closed, Fixed and tested


Description

The "Items" property on the class ContentArea will be empty after creating a writable clone even if the original content area contained items. The issue does not affect the Fragments property. Note that this also applies to content areas created from an initial unparsed string value as long as the content area is writable.

Note: This does not affect edit mode or when updating pages programatically, it affects code that first clones a page (CreateWritableClone) and then programmatically expects data available in ContentArea.Items.