Change order of Content Type properties in admin mode throws error

Found in

EPiServer.CMS.UI 11.25.0

Fixed in

EPiServer.CMS.UI 11.29.0

Created

Aug 14, 2020

Updated

Sep 15, 2020

Area

CMS UI

State

Closed, Fixed and tested


Description

Steps to Reproduce

  1. Use an Alloy site with above versions
  2. Login and go to admin mode, Content Types tab and click on any page in Page Types. Click on Arrow Symbols.
    Expected: You can move properties up and down.
    Actual: Below error is thrown, if not detailed it gives a 500 error.

[NullReferenceException: Object reference not set to an instance of an object.]
   ASP.episerver_cms_admin_editcontenttype_aspx.__DataBind__control43(Object sender, EventArgs e) in D:\VSProjects\AlloyFind\EPiServer\CMS\Admin\EditContentType.aspx:133
   System.Web.UI.Control.OnDataBinding(EventArgs e) +84
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +150
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.Control.DataBindChildren() +185
   System.Web.UI.Control.DataBind(Boolean raiseOnDataBinding) +160
   System.Web.UI.Control.DataBind() +17
   System.Web.UI.WebControls.Repeater.CreateItem(Int32 itemIndex, ListItemType itemType, Boolean dataBind, Object dataItem) +126
   System.Web.UI.WebControls.Repeater.AddDataItemsIntoItemsArray(IEnumerable dataSource, Boolean useDataSource) +217
   System.Web.UI.WebControls.Repeater.PostGetDataAction(IEnumerable dataSource) +71
   System.Web.UI.WebControls.Repeater.CreateControlHierarchy(Boolean useDataSource) +220
   System.Web.UI.WebControls.Repeater.OnDataBinding(EventArgs e) +62
   System.Web.UI.WebControls.Repeater.DataBind() +77
   EPiServer.UI.Admin.EditContentType.SetPropertyInfo(IEnumerable`1 props) +65
   EPiServer.UI.Admin.EditContentType.UpdatePropertyDefinitionFieldOrder(Int32 propertyDefinitionId, Boolean increase) +566
   EPiServer.UI.Admin.EditContentType.MoveUp_Click(Object sender, CommandEventArgs e) +57
   System.Web.UI.WebControls.ImageButton.OnCommand(CommandEventArgs e) +111
   System.Web.UI.WebControls.ImageButton.RaisePostBackEvent(String eventArgument) +182
   System.Web.UI.WebControls.ImageButton.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +12
   System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +15
   System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +35
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +1639