User tests: Successful: Unsuccessful:
Pull Request resolves #47543 .
Adds a previousvisitDate field to Joomla users to preserve the previous value of lastvisitDate.
Currently, when Joomla updates a user's lastvisitDate, the previous value is overwritten. This means extensions cannot determine when a user last visited before their most recent visit without maintaining their own history.
This change copies the existing lastvisitDate to previousvisitDate before updating lastvisitDate.
The change includes a new nullable previousvisitDate column in the users table for MySQL and PostgreSQL, the corresponding database update SQL, and a new previousvisitDate property on the User class.
The previousvisitDate is displayed in both the users and user views in the admin
Joomla stores the timestamp of the user's most recent visit in lastvisitDate.
When the user visits again, the existing value is overwritten with the new timestamp. The previous value is therefore no longer available from the user record.
Joomla preserves the previous value of lastvisitDate in previousvisitDate before updating lastvisitDate.
The Users Administrator list displays both Last Visit and Previous Visit, with Previous Visit supporting sorting.
The user edit screen also displays both dates as read-only fields.
After the first recorded visit, previousvisitDate remains empty because there is no known previous visit. On subsequent visits, it contains the timestamp of the visit immediately preceding the current Last Visit value.
This also makes the previous visit date available to extensions through the User object.
Please select:
Documentation link for guide.joomla.org:
No documentation changes for guide.joomla.org needed
Pull Request link for manual.joomla.org:
No documentation changes for manual.joomla.org needed
| Status | New | ⇒ | Pending |
| Category | ⇒ | SQL Administration com_admin Postgresql com_users Language & Strings Installation Libraries |
| Labels |
Added:
Language Change
PR-6.3-dev
|
||
Clicking the
Previous Visitheading does not change the ascending/descending icon.
good spot - should be fixed now
Clicking the
Previous Visitheading does not change the ascending/descending icon.