fixed sort in User Activity Logs for User column

This commit is contained in:
anhefti 2021-02-01 09:20:32 +01:00
parent 30e901f20e
commit 87951bdaaa
2 changed files with 3 additions and 2 deletions

View file

@ -196,6 +196,7 @@ public class UserActivityLogs implements TemplateComposer {
UserActivityLog.ATTR_USER_NAME,
USER_TEXT_KEY,
UserActivityLog::getUsername)
.sortable()
.withFilter(this.userNameFilter))
.withColumn(new ColumnDefinition<UserActivityLog>(

View file

@ -306,8 +306,8 @@ public class PaginationServiceImpl implements PaginationService {
// User Activity Log Table
final Map<String, String> userActivityLogTableMap = new HashMap<>();
userActivityLogTableMap.put(
Domain.USER_ACTIVITY_LOG.ATTR_USER_UUID,
UserActivityLogRecordDynamicSqlSupport.userUuid.name());
Domain.USER.ATTR_USERNAME,
UserRecordDynamicSqlSupport.username.name());
userActivityLogTableMap.put(
Domain.USER_ACTIVITY_LOG.ATTR_ACTIVITY_TYPE,
UserActivityLogRecordDynamicSqlSupport.activityType.name());