Admin Field Relations JFormRuleInt has invalid regex error #446
Labels
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: joomla/Component-Builder#446
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Steps to reproduce the issue
Create a admin field relation
Expected result
admin field creation succesful created.
Actual result
Error: JFormRuleInt has invalid regex
System information (as much as possible)
Additional comments
Seems like an older version of JCB on 3.9.10 gives same error.
Some times things break when other things get fixed... thanks for the heads-up I am on it.
Well at this point I am suspicious that this is a Joomla bug... but I will look a little more. Those who can follow... the error comes from here: line 71 in /libraries/src/Form/FormRule.php because of this: line 158 and 176 of /admin/models/forms/admin_fields_relations.xml
So to do a work around for now... just remove the
validate="int"
lines from the xml and it should work.TO fully fix this I need to look a little more 👍
Ahhh found it... the int validation is not a Joomla class, but a custom JCB class, and it worked before, but not anymore... so I just added it in and will be in the next release. For now add the following code:
So in /admin/models/rules/int.php add the following method:
This should resolve the issue.