Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-24081

Parameter feature mandatory is ignored when the feature also has a group

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 17.10.0
    • CKEditor
    • None
    • Unknown

    Description

      Whenever you create a group for parameters that are bound to the same feature, and the feature is mandatory, the group overrides the mandatory property and, all of a sudden, the radio button is no longer present and you have to fill all the parameters bound to the feature to be able to submit the macro.

      Steps to reproduce:
      1. Create a macro
      2. Add 2 parameters bound them to the same feature and mark parameter feature mandatory as true for both
      3. Add the parameters to the same group
      4. Use the macro

      Expected behavior:
      The macro parameter modals shows the UI with the radio buttons where you have to select only one of the parameters bound to the same feature.

      Actual behavior:
      The macro parameter modals doesn't show the radio button and requires you to fill in both parameters even if you should complete only one.


      Added a xar with a simple example

      Attachments

        1. image-2026-03-04-10-13-31-815.png
          31 kB
          Farcasi Alexandru-Vicentiu
        2. image-2026-03-04-10-13-40-233.png
          35 kB
          Farcasi Alexandru-Vicentiu
        3. MacroParameters.TestMacro1.WebHome.xar
          3 kB
          Farcasi Alexandru-Vicentiu

        Activity

          People

            Unassigned Unassigned
            Farcasut Farcasi Alexandru-Vicentiu
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: