Set up a form with a subform field, making sure that
validate="subform"
is included.
Fill in the form and submit it.
Form is handled without error.
Error:
Joomla\CMS\Form\Form::validateField() rule subform
missing.
Joomla 3.9.20 (although problem also occurs on earlier versions).
The problem is that the file /libraries/src/Form/Rule/SubFormRule.php should be renamed to /libraries/src/Form/Rule/SubformRule.php (note the lowercase "f" in "subform".
Labels |
Added:
?
|
Use validate="SubForm"
?
Status | New | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2020-07-16 15:47:15 |
Closed_By | ⇒ | chrisdavenport |
Strangely, that actually works! I have amended the documentation here: https://docs.joomla.org/Subform_form_field_type
Thanks @SharkyKZ
I'm not sure if this is the right long term solution though. We probably want to have consistent casing of Subform
.
True, but that's a rabbit hole I don't have time to go down at this moment.
That will bring us back to the good old file rename problem when updating on Windows and old and new name only differ in case. @SharkyKZ Any idea how to solve this?