Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

New draft created after publishing content with a property list of blocks containing a date property

Vote:
 

Hello. I'm still affected by a bug that is listed as fixed, while using EPiServer.CMS.UI 12.19.0. I want to use an IList<EventDateBlock> property on my page. EventDateBlock is defined as such:

[ContentType(AvailableInEditMode = false, GUID = "F6D64C68-DE4A-422B-99CD-65B92AED8C32")]
public class EventDateBlock : BlockData
{
    public virtual DateTime Date { get; set; }    
    public virtual string StartTime { get; set; }    
    public virtual string EndTime { get; set; }
}

When publishing a new version of the page, a new draft is immediately created. This only applies to the "All Properties" view, "On-Page Editing" works as expected. I believe this bug needs to be revisited.

// EDIT
It seems to only happen if either StartTime or EndTime is not set. If I make sure every property in every EventDateBlock has a value, it works as expected and no new draft is created.

#301508
Edited, May 11, 2023 6:34
Vote:
 

It seems like this bug has now been fixed, has it fixed your issue or are you still seeing the same error?

#312702
Nov 17, 2023 19:00
Vote:
 

I don't know, I ended up switching to DateTimes with a time picker client editor attribute, which seemed to help with the issue.

#312813
Nov 20, 2023 6:36
* 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.