diff --git a/app/jobs/regular/export_csv_file.rb b/app/jobs/regular/export_csv_file.rb index 35d36e112db..8c215bdef8b 100644 --- a/app/jobs/regular/export_csv_file.rb +++ b/app/jobs/regular/export_csv_file.rb @@ -44,7 +44,7 @@ module Jobs def get_group_names(user) group_names = [] - groups = user.custom_groups + groups = user.groups groups.each do |group| group_names.push(group.name) end