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

Try our conversational search powered by Generative AI!

LinkItemCollection loose link when editing

Vote:
 

Version 11.9.4

I can create a link and it's saved and displayed fine. When I'm in edit mode and trying to edit the link it's gone. If I cancel it's still there. 

Anyone came across this?

Model:

    [IndexInContentAreas]
    [ContentType(GUID = "4204eac8-d216-493d-a0de-a51230e1e5c7")]
    [ThumbnailIcon(FontAwesome.ListUl, Global.ContentTypeColors.Inverted, 
    Global.ContentTypeColors.Standard)]
    public class LinksBlock : SiteBlockData, IRightColumnBlock
    {
        [Required]
        [Display(
            GroupName = SystemTabNames.Content,
            Order = 10)]
        public virtual string Title { get; set; }

        [Display(
           GroupName = SystemTabNames.Content,
           Order = 20)]
        public virtual LinkItemCollection Links { get; set; }
    }

View:

@model LinksBlock

@if (!string.IsNullOrWhiteSpace(Model.Title) || PageEditing.PageIsInEditMode) {
    <div class="linkCollection-header" @Html.EditAttributes(m => m.Title)>@Model.Title</div>
}
@if (Model.Links != null || PageEditing.PageIsInEditMode) {
    @Html.PropertyFor(m => m.Links, "LinkCollectionList")
}

#215830
Edited, Jan 15, 2020 12:15
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.