This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-e09c663d-628d-4971-ae73-925314ace61d XWIKI-24081 Open

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-0d9e28e8-57f8-4f28-8ae6-23275937281d Farcasi Alexandru-Vicentiu created this issue on 04/Mar/26 09:14
 
Summary: Parameter feature mandatory is ignored when the feature also has a group
Issue Type: cid:jira-generated-image-avatar-e09c663d-628d-4971-ae73-925314ace61d Bug
Affects Versions: 17.10.0
Assignee: Unassigned
Attachments: MacroParameters.TestMacro1.WebHome.xar, image-2026-03-04-10-13-31-815.png, image-2026-03-04-10-13-40-233.png
Components: Rendering
Created: 04/Mar/26 09:14
Priority: cid:jira-generated-image-static-major-9b9cac3d-d0e7-47b7-acbe-e1e122cfcb00 Major
Reporter: Farcasi Alexandru-Vicentiu
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 feature is no longer mandatory 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.

_thumb_44620.png
_thumb_44619.png

Added a xar with a simple example