diff --git a/app/models/queries/filters/shared/user_name_filter.rb b/app/models/queries/filters/shared/user_name_filter.rb index aa501bdebb50..58956e8ae3df 100644 --- a/app/models/queries/filters/shared/user_name_filter.rb +++ b/app/models/queries/filters/shared/user_name_filter.rb @@ -68,7 +68,7 @@ def sql_value def sql_concat_name case Setting.user_format when :firstname_lastname - "LOWER(CONCAT(users.firstname, CONCAT(' ', users.lastname)))" + "LOWER(CONCAT(users.firstname, ' ', users.lastname))" when :firstname 'LOWER(users.firstname))' when :lastname_firstname, :lastname_coma_firstname