diff --git a/app/models/team.rb b/app/models/team.rb index 39e2ec7c3bf..77ee1325d52 100755 --- a/app/models/team.rb +++ b/app/models/team.rb @@ -261,7 +261,7 @@ def self.export(csv, parent_id, options, teamtype) if options[:team_name] == 'false' team_members = TeamsUser.where(team_id: team.id) team_members.each do |user| - user_export = user.kind_of?(User) ? user.username : user.user + user_export = user.respond_to?(:username) ? user.username : user.user output.push(user_export) end end