Describe the bug
I've a custom component with a form composed by a mediajce field and a repeatable subform with another mediajce field inside it.
I've a specific JCE profile, assigned to that component, and a default JCE profile, assigned to all components. The specific profile precedes the default profile.
In my custom component form, if I open the filebrowser window from the mediajce field outside the subform, everything works well, the specific profile settings are taken into account.
But when I open the window from the mediajce field inside the repeatable subform, the filebrowser uses the default profile configuration, ignoring the specific profile.
Trying to assign the specific profile to "All components" makes things work. So, it seems that only for repeatable mediajce fields JCE ignores the restricted profile.
Expected behavior
My custom component should take into account the specific profile settings for the mediajce field in the repeatable subform, like the field outside the subform.
Screenshots
custom componet form, with mediajce fields inside and outside a subform
Describe the bug I've a custom component with a form composed by a mediajce field and a repeatable subform with another mediajce field inside it. I've a specific JCE profile, assigned to that component, and a default JCE profile, assigned to all components. The specific profile precedes the default profile. In my custom component form, if I open the filebrowser window from the mediajce field outside the subform, everything works well, the specific profile settings are taken into account. But when I open the window from the mediajce field inside the repeatable subform, the filebrowser uses the default profile configuration, ignoring the specific profile. Trying to assign the specific profile to "All components" makes things work. So, it seems that only for repeatable mediajce fields JCE ignores the restricted profile.
To Reproduce form xml:
subform xml:
Expected behavior My custom component should take into account the specific profile settings for the mediajce field in the repeatable subform, like the field outside the subform.
Screenshots custom componet form, with mediajce fields inside and outside a subform![image](https://user-images.githubusercontent.com/56836583/141472077-213ea3e1-6aa1-4de5-af4c-a8d071e1b0e8.png)
Versions Joomla 3.10.3 JCE 2.9.17 core