Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Project Forum Project Forum
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 104
    • Issues 104
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 13
    • Merge requests 13
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • EIPEIP
  • Project ForumProject Forum
  • Project ForumProject Forum
  • Issues
  • #372
Closed
Open
Issue created Apr 20, 2022 by Otto Visser@owvisserOwner

ActionView::Template::Error: Can't join 'Project' to association named 'company'; perhaps you misspelled it?

Sentry Issue: PROJECT-FORUM-2N

ActiveRecord::ConfigurationError: Can't join 'Project' to association named 'company'; perhaps you misspelled it?

  app/views/admin/groups/index.xlsx.axlsx:8:
    @groups.each do |group|
  app/views/admin/groups/index.xlsx.axlsx:2:
    wb.add_worksheet(name: 'groups') do |sheet|
  app/controllers/admin/application_controller.rb:63:in `switch_locale'
    I18n.with_locale(locale, &action)

On line 7, we do an includes with company in there. That should be changed to offerer:

@groups = @groups.includes(project: %i[company], users: %i[sso_profile], user_course_specific_roles: %i[course_specific_role user], notes: %i[user])
Edited Apr 20, 2022 by Taico Aerts
Assignee
Assign to
Time tracking