No Code Attached Yet bug
avatar niosme
niosme
14 Jun 2024

Steps to reproduce the issue

https://www.awesomescreenshot.com/video/28634289?key=0cd544c850693dfbd16aaaccae2adae0

Subform into a subform doesnt save correctly the data. Also showon doesnt work right.

I attached a module that i used in the video and you can recreate the problem by going into the special hours tab and trying to add something there and save it. In the first basic tab everything works fine as expected.

When a subform into a subform save doesnt work as expected.

Expected result

Show on to work and save the data as we did them.

Actual result

The data and structure changes and adds more than it should

System information (as much as possible)

Joomla 5.1.0

Additional comments

mod_open_hours.zip

avatar niosme niosme - open - 14 Jun 2024
avatar joomla-cms-bot joomla-cms-bot - change - 14 Jun 2024
Labels Added: No Code Attached Yet
avatar joomla-cms-bot joomla-cms-bot - labeled - 14 Jun 2024
avatar Fedik Fedik - change - 14 Jun 2024
Labels Added: bug
avatar Fedik Fedik - labeled - 14 Jun 2024
avatar Fedik
Fedik - comment - 14 Jun 2024

It is because min attribute in the nested subfrom seems buggy. Without min="1" it works fine.
About radio switch, there already an issue #40160

avatar Fedik Fedik - change - 14 Jun 2024
Title
Subform into a subform in xml save error
Nested Subform field with `min` attribute saves with error
avatar Fedik Fedik - edited - 14 Jun 2024
avatar niosme
niosme - comment - 14 Jun 2024

Thanks a lot! I ll remove it then <3
Removing min attribute also fixed the show on functionallity.

If i find something it could help more i ll attach it here!

avatar Fedik Fedik - change - 15 Oct 2024
Title
Nested Subform field with `min` attribute saves with error
Nested Subform field with `min` attribute or with default value saves with error
avatar Fedik Fedik - edited - 15 Oct 2024
avatar Fedik
Fedik - comment - 15 Oct 2024

Note: this also happen when nested subform have default value.

Add a Comment

Login with GitHub to post a comment