Fix teams tests

This commit is contained in:
Urban Rotnik 2020-11-25 20:02:45 +01:00
parent e3f9087600
commit be49216e71

View file

@ -74,7 +74,7 @@ class TeamsController < ApplicationController
@exp_projects = []
if export_projects_params[:project_ids]
@exp_projects = @team.project.where(id: export_projects_params[:project_ids]).to_a
@exp_projects = @team.projects.where(id: export_projects_params[:project_ids]).to_a
end
if export_projects_params[:project_folder_ids]
folders = @team.project_folders.where(id: export_projects_params[:project_folder_ids])