I have been testing what happens to GroupX data when a user submits a form that includes a GroupX.
In the main form, the user is allowed to add or remove GroupX fields.
In the test, the user does the following:
- Adds a test (and fills it out)
- Adds another (and fills it out)
- Removes the first test
- And continues as usual
- Submits the form
In the admin back-end, I can see how the data has been re-arranged over the 2 GroupX fields. Even tho the first was removed, I still see 2 GroupX fields.
The first GroupX (that was removed) contains some data, AND
The second GroupX (that remained) contains the rest.
All the data is from the one I kept, ie did NOT remove.
I noticed this problem because my template inverted parts of the GroupX field when rendered, if I had removed one.
The ONLY way I can see thru this problem is to NOT allow users to remove a GroupX type field.
Hmmm....
Using Seblod 3.3.5