Create a subform in backend of your website, see screenshot below.
Click on + button > not working, no message, nothing.
Clicking on the + button should add entry to form.
Nothing happens when clicking on + button, should add row to form.
Joomla 3.9.0, updated from 3.8.13 (where this was still working).
See screenshot:
@roland-d I was indeed using an overwrite of the repeatable-table.php and 2 other files: section.php and section-byfieldsets.php.
Those files had become outdated and were slightly different from the current files in /layouts/joomla/form/field/subform-files.
So I replaced the 3 outdated files with the new files as mentioned before. And the subforms are working properly again.
Thanks for your screenshots, which pointed me in the right direction, much appreciated!
Also, the subforms seems to work just fine, my issue was caused by some outdated overwrites.
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-11-10 11:14:21 |
Closed_By | ⇒ | roland-d |
@BurtNL This issue is caused by this commit https://github.com/joomla/joomla-cms/pull/17552/files#diff-43fc98bd347d2aeaa1b1628c8fb0829b
I am going to assume you have an override of the
repeatable-table.php
file. The mentioned commit created a B/C break.The only solution there is, you have to update your override. Here is the code change from my extension:
Notice, we add the
-1
everywhere because the new subforms require a unique number per instance of the form.Here is the second change we had to do:
The
tbody
must be changed as well:You must pass the unique ID as well to the
$this->sublayout()
function:Finally you need to replace the script code with a template:
Finally you also need to update the
section-by-fieldsets.php
file with the following changes:Notice we are also adding the
-1
here.Apologies for the screenprints but I think they are clearer than writing the text. You can contact me if you want the actual code.