-
-
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
clarification of the return value for the user ID #27374
Conversation
I have tested this item ✅ successfully on 00955a9 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27374. |
Would it not be better to keep the language string the same and to change the id to username
|
I've been thinking about that, too. Especially because we (almost) always use the user name in the action logs. |
Agree. |
$messageModel->notifySuperUsers(
JText::_('PLG_SYSTEM_PRIVACYCONSENT_NOTIFICATION_USER_PRIVACY_EXPIRED_SUBJECT'),
JText::sprintf(
'PLG_SYSTEM_PRIVACYCONSENT_NOTIFICATION_USER_PRIVACY_EXPIRED_MESSAGE',
JFactory::getUser($user->user_id)->username
)
); This should do the trick. cc @tecpromotion |
@brianteeman I have withdrawn the adjustment of the language string and as suggested committed the username as return value. Many thanks to @zero-24 and @richard67 |
I have tested this item ✅ successfully on 65407b6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27374. |
1 similar comment
I have tested this item ✅ successfully on 65407b6 This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27374. |
RTC This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27374. |
Merging + cc for @imanickam @infograf768 to check whether this can / should / need to be communicated to the TT's Thanks @tecpromotion |
Summary of Changes
To make it clear what the returned number is. It is the user ID. There was some confusion about this in the German language files, and some site operators asked for the unit and thought it was days.With this change, the username is returned as suggested and the super user is notified.
Testing Instructions
.
Expected result
.
Actual result
.
Documentation Changes Required