enonic / lib-admin-ui

Enonic XP Administration UI.
GNU General Public License v3.0
5 stars 5 forks source link

Item-/option-sets are not supported in Macro descriptor #1782

Open alansemenov opened 3 years ago

alansemenov commented 3 years ago

Having an item- or option-set in macro descriptor results in console errors and nothing is rendered on the Configuration tab:

image

Sample descriptor:

<macro>
  <display-name>My macro</display-name>
  <description>Macro test</description>
  <form>
    <input type="TextLine" name="field_name_1">
      <label>field_name_1</label>
      <occurrences minimum="0" maximum="0"/>
    </input>
    <item-set name="item-set">
      <label>Item Set</label>
      <occurrences maximum="0" minimum="0"/>
      <items>
        <input type="TextLine" name="item-set_field_name_1">
          <label>item-set_field_name_1</label>
          <occurrences minimum="0" maximum="0"/>
        </input>
      </items>
    </item-set>
  </form>
</macro>
alansemenov commented 3 years ago

We decided it will not be supported (https://github.com/enonic/xp/issues/8651), but we should handle the error in the frontend.