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

Try our conversational search powered by Generative AI!

CultureSpecific properties in blocks - doesnt save value

Found in

Release 7.5

Created

Dec 09, 2014

Updated

Mar 13, 2015

Area

Falcon/CMS/Edit UI/Editing

State

Closed, Fixed and Tested


Steps to reproduce

Steps to reproduce

  1. Create a block like the below:

    [SiteContentType(

    GUID = "67F617A4-2175-4360-975E-75EDF2B924A7",

    GroupName = SystemTabNames.Content)]

    [SiteImageUrl]

    public class EditorialBlock : SiteBlockData

    {

          [Display(GroupName = SystemTabNames.Content, Order=2)]

          [CultureSpecific]

        public virtual XhtmlString MainBody { get; set; }

           [CultureSpecific(false)]

           [Display(Order=1)]

        public virtual string Heading { get; set; }

    }

    Add it as property on a page type. Render it in the view with

  2. @Html.PropertyFor(x => x.CurrentPage.MyEditBlock)

     

  3. Create a page with two langauge branches.

  4. Enter a value in MainBody for the secondary language, by clicking on the property in inline edit mode, enter value and save.



    Expected: That value will be saved

    Actual: That value will not be saved.

Note: This problem doesn't happen if Heading property's order is after MainBody one