|
|
|
@ -47,7 +47,7 @@ class GraduationTopicsController < ApplicationController
|
|
|
|
|
@current_user = current_user
|
|
|
|
|
user_graduation_topics = @course.student_graduation_topics.where(user_id: current_user.id,
|
|
|
|
|
status: [0, 1],
|
|
|
|
|
graduation_topic_id: @graduation_topic.pluck(:id))
|
|
|
|
|
graduation_topic_id: @graduation_topic.id)
|
|
|
|
|
@user_selected = user_graduation_topics.size > 0
|
|
|
|
|
page = params[:page] || 1
|
|
|
|
|
limit = params[:limit] || 50
|
|
|
|
|