Use some part of the system which uses subform in subform.
A typical example
Item
___--> Attributes (subform)
______--> Options (subsubform)
But under specific conditions:
A) If you create attributes first and save the whole item and then create options and save whole item, then everything is OK
B) But if you create attributes and options together at once and store whole item, then values for options will be not stored*
4.0.2 - Subform values will be stored, Subsubform values are empty - not stored
4.0.3 - Subform values will be stored, another empty instance of Subform values will be additionaly created (without data) but such second instance includes right subsubform values.
In case:
a) there are not required fields - form will be stored but without data for options
b) there are required fields - form will be not stored because of missing required field
Expected result should be the same like in Joomla 3 where it was possible to create subform -> fill in the data, create subsubform -> fill in the data and store whole item = all values are stored.
Subsubform values are not stored in case, the values are added at the same time like subform values in 4.0.2. In 4.0.3 additional empty instance of subform will be created.
Joomla 4.0.2
Joomla 4.0.3
This patch: #35685 does not influence this problem.
The problem in 4.0.3 is creating of another X instance
Labels |
Added:
No Code Attached Yet
|
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2021-10-08 18:49:56 |
Closed_By | ⇒ | PhocaCz |
Yes, solved, closed. Thank you.
It sounds similar to #35721, It is fixed in the 4.0-dev branch.
Please check if that works for you.