User tests: Successful: Unsuccessful:
Pull Request for Issue #26637.
Good evening/night. I wanted to go to bed 2 or 3 hours ago, now I am here.
I started to work on the issue #26637. First of all I thought it's just a small change in the request.xml of the com_privacy module, until I determine that this wasn't the case.
After switching from class to class I got into the validate() method of the FormModel, afterwards into the validate() method of FormField. Here I found the 'testing' rules part which got packed into a try catch block.
Tl;dr in conclusion: I changed return statements to throw statements in the EmailRule for fitting into the try catch block of FormField.php, which catches these exceptions. Other rules are doing that as well as far as I could observe.
Thats the awesome part: It's working everywhere, where you have to test if an email address is valid.
You can test it like this (#26637 ):
users -> privacy -> requestsnew on the top leftI added a throw paragraph. Hope that's enough for that.
| Status | New | ⇒ | Pending |
| Category | ⇒ | Libraries |
| Labels |
Added:
?
|
||
I have tested this item
| Status | Pending | ⇒ | Ready to Commit |
RTC
| Labels |
Added:
?
|
||
I have tested this item
I have tested this item
| Status | Ready to Commit | ⇒ | Fixed in Code Base |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-11-03 00:43:53 |
| Closed_By | ⇒ | wilsonge |
Thanks!
I have tested this item✅ successfully on 71b13d9
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/26810.