Custom property editor is not rendered first time after site restart

Found in

EPiServer.CMS.UI 10.9.5

Created

Jun 01 2017

Updated

Jun 14 2017

Area

CMS UI

State

Closed, As Designed

Voting

Affected? You can raise the priority of a bug by voting for it. By doing so, you will be helping our developers to choose which bug to fix next.

Voting is disabled for closed bugs.

5

Description

When loading a custom property with a custom editor for the first time in the editor ui (Forms mode), the property is not rendered correctly.
Steps to reproduce:

  1. Create a test site and add a reference to the ImageVault.EPiServer.UI nuget package
  2. Create the following page model

using System.ComponentModel.DataAnnotations;
using EPiServer.Core;
using EPiServer.DataAnnotations;
using ImageVault.EPiServer;
namespace WebApplication4.Models
{
[ContentType(GUID = "9Caa8A41-5C8a-4BE0-8E73-520FF3DE8889")]
public class TestPage : PageData
{
[Required]
public virtual MediaReference Image

{ get; set; }

}
}

  1. Create an instance of the page, you’ll end up with the view in the attached screenshot where the custom editor for the Image is just blank (See Blank.png)
  2. Press cancel and try it again, the correct view is presented (See Display.png)

Expected: When create the page in the first time it shouldn't end up with an empty editor