From 83feb67dd5d96ad1ed62da6ae26607fdfe20195e Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 20 Aug 2022 00:58:12 +0200 Subject: [PATCH] Update find method for study group in RfC index --- app/controllers/request_for_comments_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/request_for_comments_controller.rb b/app/controllers/request_for_comments_controller.rb index 32402f3e..435ad2d6 100644 --- a/app/controllers/request_for_comments_controller.rb +++ b/app/controllers/request_for_comments_controller.rb @@ -154,7 +154,7 @@ class RequestForCommentsController < ApplicationController # The index page requires the grouping of the study groups # The study groups are grouped by the current study group and other study groups of the user def set_study_group_grouping - current_study_group = StudyGroup.find_by(session[:study_group_id]) + current_study_group = StudyGroup.find_by(id: session[:study_group_id]) my_study_groups = current_user.study_groups.reject {|group| group == current_study_group } @study_groups_grouping = [[t('request_for_comments.index.study_groups.current'), Array(current_study_group)], [t('request_for_comments.index.study_groups.my'), my_study_groups]]