Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Bug when changing PageReference property to Url property

Found in

EPiServer.CMS.Core 8.10.1

Fixed in

EPiServer.CMS.Core 9.5.0

(Or a related package)

Created

Sep 07, 2015

Updated

Dec 14, 2015

Area

CMS Core

State

Closed, Fixed and tested


Description

A bug occurs when you change the property type of a property from PageReference to Url.
If you have two shared blocks with a property of 'PageReference' on a page, then change the type to 'Url,' the data is lost (changed).

Steps to reproduce

  1. Using the AlloyTech site, create a new block called 'ActionLinkButton'.
  2. Add a property to the block of type 'PageReference' and call it 'Url'.
  3. Add two properties of type 'ActionLinkButton' to 'StandardPage' type called 'ActionLink1' and 'ActionLink2'.
  4. Edit a 'StandardPage' saving data for 'ActionLink1' and 'ActionLink2' (they must save different pages).
  5. Change the 'ActionButtonLink' property type to 'Url' instead of 'PageReference'.
  6. Rebuild.
  7. Open the updated 'StandardPage'. Notice that data is missing from 'ActionLink1' (it now matches 'ActionLink2').