fixed bug in small action post when assigning or unassigning

This commit is contained in:
Juan David Martinez 2025-03-14 15:52:53 -05:00
parent 8aea4cf8b6
commit 4bacf2c5af
No known key found for this signature in database
GPG Key ID: FE50F4B983E68D5B
1 changed files with 1 additions and 1 deletions

View File

@ -492,7 +492,7 @@ class ::Assigner
end
def small_action_username_or_name(assign_to)
if assign_to.is_a?(User) && SiteSetting.prioritize_full_name_in_ux && !assign_to.username
if (assign_to.is_a?(User) && SiteSetting.prioritize_full_name_in_ux) || !assign_to.username
custom_fields = { "action_code_who" => assign_to.name || assign_to.username }
else
custom_fields = {