according to the module caption
'Last 5 Logged-in Users'
the 5 most recent logged in users should be displayed.
That is not the case
Unfortunately there is no sort order defined in
administrator/modules/mod_logged/src/Helper/LoggedHelper.php
thus the selection is random.
I have attached a diff of the file with added sort by s.time descending.
BTW the displayed time is the time of the last action in the user session.
| Labels |
Removed:
?
|
||
| Labels |
Added:
No Code Attached Yet
|
||
in case the upload of the diff not worked:
-- administrator/modules/mod_logged/src/Helper/LoggedHelper.php~ 2025-12-20 20:18:56.000000000 +0100
+++ administrator/modules/mod_logged/src/Helper/LoggedHelper.php 2026-08-17 10:20:57.533019672 +0200
@@ -49,6 +49,7 @@
->from('#__session AS s')
->join('RIGHT', '#__users AS u ON s.userid = u.id')
->where('s.guest = 0')
->order('s.time desc')
->setLimit($params->get('count', 5), 0);
$db->setQuery($query);
yes, Version 5.4.2
is there a chance the issue will be fixed in Joomla 5.4 ?
yes, Version 5.4.2
is there a chance the issue will be fixed in Joomla 5.4 ?
This should be closed
| Status | New | ⇒ | Closed |
| Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2026-08-27 14:13:19 |
| Closed_By | ⇒ | alikon |
in case the upload of the diff not worked:
-- administrator/modules/mod_logged/src/Helper/LoggedHelper.php~ 2025-12-20 20:18:56.000000000 +0100
+++ administrator/modules/mod_logged/src/Helper/LoggedHelper.php 2026-08-17 10:20:57.533019672 +0200
@@ -49,6 +49,7 @@
->from('#__session AS s')
->join('RIGHT', '#__users AS u ON s.userid = u.id')
->where('s.guest = 0')
This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/48256.