A non-green (an unaccomplished event) message or notice should appear. It can be blue Notice or yellow Warning as in https://docs.joomla.org/Display_error_messages_and_notices
A green (successful event) message appears. The text is great and valid, but it is misleading about successful event.
Joomla 3.9.2
This behavior changed in the last months. Previously it was possible to activate accounts unless the respective administrator was logged out. Now, it is required that the administrator (or similar user) logs in. That is a valid requirement and a good change in the code, IMO. But visually nothing changed, only the message and the process changed. The message is still green as in "successful valid action completed". That is misleading. Action is required to finish the validation process.
All it is a corrected optical aid. Of course, it is no excuse that the message was interpreted falsely by the user... Or is it? ]:->
The screenshot of the current message is included.
The screenshot of the current message is included.
That string is not coming from Joomla.
I have search in language override and this came up:
That is why I identified Joomla and com_users. The capitalization is a result of the gTranslate plugin. (gTranslate has been switched on, while already on English default site language.)
See https://github.com/joomla/joomla-cms/blob/staging/language/en-GB/en-GB.com_users.ini#L120
Indeed, there no message type set in
ROOT/components/com_users/controllers/registration.php
line 92
$this->setMessage($message);
By default, it therefore uses the Message
type.
It should be a warning
$this->setMessage($message, 'warning');
@kofaysi Can you propose a PR?
My first PR has been created kofaysi#1
I used this manual https://extensions.joomla.org/blog/item/how-to-contribute-to-joomla-through-github/ (screenshots are outdated).
Did I miss anything crucial, please?
I think that that PR is going to affect the line 84, too
$message = JText::_('COM_USERS_REGISTRATION_ACL_ADMIN_ACTIVATION_PERMISSIONS');
and it is a correct behavior also.
yes. both messages are concerned.
now you have to propose your PR from your branch to staging
Status | New | ⇒ | Information Required |
I made a stupid mistake and merged the PR into staging only now. I guess, a code will be attached soon. So, the issue should stay open until the PR is accepted or dismissed, right?
if there is a PR the issue can be closed.
Status | Information Required | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2019-03-04 13:45:41 |
Closed_By | ⇒ | kofaysi |
The screenshot of the current message is included.
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/23763.