FIX: insert commas even when field value is null (#14791)
This commit is contained in:
parent
7dcecef4c3
commit
aeaf27b7dc
|
@ -317,7 +317,11 @@ module Jobs
|
|||
|
||||
def add_group_names(user, user_info_array)
|
||||
group_names = user.groups.map { |g| g.name }.join(";")
|
||||
user_info_array << escape_comma(group_names) if group_names.present?
|
||||
if group_names.present?
|
||||
user_info_array << escape_comma(group_names)
|
||||
else
|
||||
user_info_array << nil
|
||||
end
|
||||
user_info_array
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue