mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-12 11:43:01 +02:00
fixes #1529 rewrite list of filter users for activities
* migration task to update activity.performed_by (with object_id) for logout action (was always user guest instead of the real user) * activities: use the actual regrouped lines to list filter users (instead of performing a separate SQL query)
This commit is contained in:
@@ -547,15 +547,8 @@ function lineConstructor(line) {
|
||||
newLine.find(".date-hour").html(line.hour);
|
||||
|
||||
/* User _Section */
|
||||
|
||||
if (line.user_id != 2) {
|
||||
newLine.find(".user-name").html(line.username);
|
||||
newLine.find(".user-pic").html(get_initials(line.username));
|
||||
} else {
|
||||
newLine.find(".user-name").html(line.details.users_string);
|
||||
newLine.find(".user-pic").html(get_initials(line.details.users_string));
|
||||
}
|
||||
|
||||
newLine.find(".user-name").html(line.username);
|
||||
newLine.find(".user-pic").html(get_initials(line.username));
|
||||
|
||||
/* Detail_section */
|
||||
newLine.find(".detail-item-1").html(line.ip_address);
|
||||
|
||||
Reference in New Issue
Block a user