The ButtonSet component requires a model despite the fact that it exists in the “Layout” section of the component toolbox. No other components in the “Layout” section even have a model property let along require one.
If you do not specify a model for the ButtonSet, you encounter the error:
“Invalid Model ‘undefined’ on Button Set component. This Model’s Id may have been changed, or the Model may have been deleted.”
There is no reason for ButtonSet to require a model. If a ButtonSet does not have a model, it should still function. Requiring a model creates unnecessary overhead - the model should be optional.
Steps to reproduce:
- Create page using XML below
- preview page
Expected Behavior
Page displays successfully
Actual Behavior
Encounter “Invalid Model ‘undefined’ on Button Set component. This Model’s Id may have been changed, or the Model may have been deleted.” error.
Sample Page XML
<skuidpage unsavedchangeswarning="yes" personalizationmode="server" showsidebar="true" useviewportmeta="true" showheader="true"> <models/>
<components>
<buttonset uniqueid="sk-2sKqZI-85">
<buttons/>
</buttonset>
</components>
<resources>
<labels/>
<javascript/>
<css/>
</resources>
<styles>
<styleitem type="background" bgtype="none"/>
</styles>
</skuidpage>