Details
-
Type:
Bug
-
Status:
Closed
-
Priority:
Major
-
Resolution: Won't Fix
-
Affects Version/s: 1.9
-
Fix Version/s: None
-
Component/s: Forms Library
-
Labels:None
-
Affected Branches:MOODLE_19_STABLE
Description
I see that when you add an element using the addElement, you get <div class="felement f{ELEMENT_NAME}
When you use addGroup, you set <fieldset class="felement fgroup"><input type.....
I think the groups do like <fieldset class="felement fgroup"> { <div class="felement f{ELEMENT_NAME}} </fieldset>
That is, each element being added by a addGroup should also have its flemtn defined inside the fieldset of the group.
This creates a bug. For example if you create a group of "file" element and something and you try to submit, the file element is not defined hence you cannot submit the file.
I don't really understand the problem. Can you explain in more detail and / or include a code sample of code that would produce an error.