-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix error message is not displayed in com_config (#4653) #4654
Conversation
+1 from me for this PR. Thanks for fixing the issue. Just some comments:
|
|
$message is always an exception.
You mis-understand me. It is only a bad idea if you throw the Exception, if you return the Exception, it will work well, the error still being queued and displayed (of course with your PR merged). So instead of writing :
I believe you can write:
For using "message" attribute, if your PR is merged, it should work well, too (I haven't tested, just see it by reading the code of JForm class).
I am OK to leave that code there (it is safer than removing it) |
I see, I already used |
Yeah ! I wrote my comments with the assumption that your PR is merged. |
Issue is fixed. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4654. |
@tranduyhung Can you fix the merge conflicts and check if the issue still exist? Thank you. This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4654. |
I fixed the merge conflict. Thank you @roland-d for your letting me know. |
@joomdonation can you retest the last changes? Than we can RTC ;) This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4654. |
Hi Infact, this PR could be closed. The issue is not valid anymore because it was fixed with this PR #6439 |
Closing as requested. Thanks @joomdonation |
While building a custom JFormRule to validate the options in my custom component's configuration, I realize that the rule's error message is not displayed after redirecting back to the configuration form.
}
But if we try to go to somewhere else
Then the message is displayed as usual.
The problem is in https://github.com/joomla/joomla-cms/blob/staging/components/com_config/model/form.php#L313
It should be