? ? Pending

User tests: Successful: Unsuccessful:

avatar tecpromotion
tecpromotion
29 Dec 2019

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

avatar tecpromotion tecpromotion - open - 29 Dec 2019
avatar tecpromotion tecpromotion - change - 29 Dec 2019
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 29 Dec 2019
Category Administration Language & Strings
avatar ChristineWk ChristineWk - test_item - 29 Dec 2019 - Tested successfully
avatar ChristineWk
ChristineWk - comment - 29 Dec 2019

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.

avatar brianteeman
brianteeman - comment - 29 Dec 2019

Would it not be better to keep the language string the same and to change the id to username

JText::sprintf('PLG_SYSTEM_PRIVACYCONSENT_NOTIFICATION_USER_PRIVACY_EXPIRED_MESSAGE', $user->user_id)

avatar tecpromotion tecpromotion - change - 29 Dec 2019
Title
Update en-GB.plg_system_privacyconsent.ini
clarification of the return value for the user ID
avatar tecpromotion tecpromotion - edited - 29 Dec 2019
avatar tecpromotion
tecpromotion - comment - 29 Dec 2019

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.

avatar richard67
richard67 - comment - 29 Dec 2019

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.

avatar zero-24
zero-24 - comment - 9 Jan 2020
			$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
				)
			);

https://github.com/joomla/joomla-cms/blob/staging/plugins/system/privacyconsent/privacyconsent.php#L701-L704

This should do the trick. cc @tecpromotion

avatar tecpromotion tecpromotion - change - 11 Jan 2020
Labels Added: ? ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 11 Jan 2020
Category Administration Language & Strings Front End Plugins
avatar tecpromotion tecpromotion - change - 11 Jan 2020
Labels Removed: ?
avatar tecpromotion
tecpromotion - comment - 11 Jan 2020

@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

avatar tecpromotion tecpromotion - change - 11 Jan 2020
The description was changed
avatar tecpromotion tecpromotion - edited - 11 Jan 2020
avatar tecpromotion tecpromotion - change - 16 Jan 2020
Labels Removed: ?
avatar Quy
Quy - comment - 27 Feb 2020

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.

avatar Quy Quy - test_item - 27 Feb 2020 - Tested successfully
avatar alikon
alikon - comment - 29 Feb 2020

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.

avatar alikon alikon - test_item - 29 Feb 2020 - Tested successfully
avatar alikon alikon - change - 29 Feb 2020
Status Pending Ready to Commit
avatar alikon
alikon - comment - 29 Feb 2020

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27374.

avatar zero-24
zero-24 - comment - 29 Feb 2020

Merging + cc for @imanickam @infograf768 to check whether this can / should / need to be communicated to the TT's

Thanks @tecpromotion

avatar zero-24 zero-24 - close - 29 Feb 2020
avatar zero-24 zero-24 - merge - 29 Feb 2020
avatar zero-24 zero-24 - change - 29 Feb 2020
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2020-02-29 11:36:27
Closed_By zero-24
Labels Added: ?

Add a Comment

Login with GitHub to post a comment