Skip to content

Attribute Matrix Field Breaks UI In Resource Question List #78

@caleb-kraft

Description

@caleb-kraft

Please go through all the tasks below

  • Check this box only after you have successfully completed both the above tasks

Please provide a brief description of the problem. Please do not forget to attach the relevant screenshots from your side.

When I add a resource to a reservation and that resource has an Attribute Matrix field in the list of questions, I get this error:

Error

The control must be in the control tree of a page. Parameter name: control
at System.Web.UI.ScriptRegistrationManager.RegisterStartupScript(Control control, Type type, String key, String script, Boolean addScriptTags)
at Rock.Web.UI.Controls.ReorderField.Initialize(Boolean sortingEnabled, Control control) in \Rock\Web\UI\Controls\Grid\ReorderField.cs:line 83
at System.Web.UI.WebControls.GridView.CreateChildControls(IEnumerable dataSource, Boolean dataBinding)
at Rock.Web.UI.Controls.Grid.CreateChildControls(IEnumerable dataSource, Boolean dataBinding) in \Rock\Web\UI\Controls\Grid\Grid.cs:line 1398
at System.Web.UI.WebControls.CompositeDataBoundControl.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.GridView.PerformDataBinding(IEnumerable data)
at System.Web.UI.WebControls.DataBoundControl.OnDataSourceViewSelectCallback(IEnumerable data)
at Rock.Web.UI.Controls.AttributeMatrixEditor.BindGrid(Nullable1 attributeMatrixGuid) in \Rock\Web\UI\Controls\AttributeMatrixEditor.cs:line 677 at Rock.Web.UI.Controls.AttributeMatrixEditor.set_AttributeMatrixGuid(Nullable1 value) in \Rock\Web\UI\Controls\AttributeMatrixEditor.cs:line 299
at Rock.Field.Types.MatrixFieldType.SetEditValue(Control control, Dictionary2 configurationValues, String value) in \Rock\Field\Types\MatrixFieldType.cs:line 385 at Rock.Web.Cache.AttributeCache.AddControl(ControlCollection controls, AttributeControlOptions options) in \Rock\Web\Cache\Entities\AttributeCache.cs:line 795 at RockWeb.Plugins.com_bemaservices.RoomManagement.ReservationDetail.AddResourceEditControls(ReservationResourceSummary reservationResource, Control parentControl, Boolean setValue, String validationGroup, List1 exclude)
at RockWeb.Plugins.com_bemaservices.RoomManagement.ReservationDetail.BuildResourceQuestions(Boolean isEditMode, Boolean resetControls)
at RockWeb.Plugins.com_bemaservices.RoomManagement.ReservationDetail.LoadAdditionalInfo(Boolean isEditMode, Boolean resetReservationControls, Boolean resetLocationControls, Boolean resetResourceControls)
at RockWeb.Plugins.com_bemaservices.RoomManagement.ReservationDetail.SaveReservationResource()
at RockWeb.Plugins.com_bemaservices.RoomManagement.ReservationDetail.dlgReservationResource_SaveClick(Object sender, EventArgs e)
at Rock.Web.UI.Controls.ModalDialog.SaveLink_ServerClick(Object sender, EventArgs e) in \Rock\Web\UI\Controls\ModalDialog.cs:line 573
at System.Web.UI.HtmlControls.HtmlAnchor.OnServerClick(EventArgs e)
at System.Web.UI.Page.d__523.MoveNext()

Expected Behavior

It should add the attribute matrix question into the additional info panel.

Actual Behavior

It break the UI and errors.

Steps to Reproduce

  • create a resource with an Attribute matrix question
  • add that resource to a reservation

Rock Version

Rock McKinley 16.11 (1.16.11.1)

Plugin Version

2.6.3.16 installed

Client Culture Setting

en-US

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions