There are 3 updates, 1 comment.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8646449d-e2fd-4fc7-8f79-82b4456ca8e9 XWIKI-24081 Open

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

 
View issue   ยท   Add comment
 

3 updates

 
cid:jira-generated-image-avatar-0e0d901c-e6a5-498b-a03b-b78bcf59336d Changes by Simon Urli on 04/Mar/26 10:02
 
Component: Rendering
Component: CKEditor
 
cid:jira-generated-image-avatar-8c3c548d-a3c0-4d03-bf97-399f0ddc9adf Changes by Farcasi Alexandru-Vicentiu on 04/Mar/26 10:06
 
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 radio button is no longer mandatory 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.

!image-2026-03-04-10-13-31-815.png|thumbnail!
!image-2026-03-04-10-13-40-233.png|thumbnail!

Added a xar with a simple example
 
 

1 comment

 
cid:jira-generated-image-avatar-0e0d901c-e6a5-498b-a03b-b78bcf59336d Simon Urli on 04/Mar/26 10:10
 

Farcasi Alexandru-Vicentiu here apparently the problem is that both parameters belongs to same feature and same group: when the hierarchy is created, it creates a mandatory feature which contains a single mandatory group, which contains 2 parameters.
So from feature PoV there's no choice, only a single group containing 2 parameters, and the group is mandatory so both parameters need to be filled.

And I'm not sure this resolution is wrong: in your case why do you put both your parameters in the same feature AND the same group ?