No Code Attached Yet
avatar PhocaCz
PhocaCz
8 Oct 2021

Steps to reproduce the issue

Use some part of the system which uses subform in subform.

A typical example
Item
___--> Attributes (subform)
______--> Options (subsubform)

image

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*

  • There is different behaviour in 4.0.2 and 4.0.3

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

4.0.2:
image

4.0.3:
image

Expected result

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.

Actual result

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.

System information (as much as possible)

Joomla 4.0.2
Joomla 4.0.3

This patch: #35685 does not influence this problem.

Additional comments

The problem in 4.0.3 is creating of another X instance

img

avatar PhocaCz PhocaCz - open - 8 Oct 2021
avatar joomla-cms-bot joomla-cms-bot - change - 8 Oct 2021
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 8 Oct 2021
avatar PhocaCz PhocaCz - change - 8 Oct 2021
The description was changed
avatar PhocaCz PhocaCz - edited - 8 Oct 2021
avatar Fedik
Fedik - comment - 8 Oct 2021

It sounds similar to #35721, It is fixed in the 4.0-dev branch.
Please check if that works for you.

avatar PhocaCz PhocaCz - change - 8 Oct 2021
The description was changed
avatar PhocaCz PhocaCz - edited - 8 Oct 2021
avatar PhocaCz
PhocaCz - comment - 8 Oct 2021

Hi @Fedik

testing now all possible combinations, and it looks like it works in 4.0.4 (#35726)

Thank you, Jan

avatar richard67
richard67 - comment - 8 Oct 2021

Does it mean this issue can be closed because solved with #35726 ?

avatar PhocaCz PhocaCz - change - 8 Oct 2021
Status New Closed
Closed_Date 0000-00-00 00:00:00 2021-10-08 18:49:56
Closed_By PhocaCz
avatar PhocaCz PhocaCz - close - 8 Oct 2021
avatar PhocaCz
PhocaCz - comment - 8 Oct 2021

Yes, solved, closed. Thank you.

Add a Comment

Login with GitHub to post a comment