diff --git a/app/controllers/homework_common_controller.rb b/app/controllers/homework_common_controller.rb index 28e2e192b..34bce7236 100644 --- a/app/controllers/homework_common_controller.rb +++ b/app/controllers/homework_common_controller.rb @@ -78,9 +78,9 @@ class HomeworkCommonController < ApplicationController @homework.course_id = params[:course_id] if params[:homework_common][:anonymous_comment] && params[:homework_common][:anonymous_comment] != @homework.anonymous_comment if @homework.anonymous_comment == 1 - homework_detail_manual.ta_proportion = homework.homework_type == 1 ? 1.0 : 0.4 + homework_detail_manual.ta_proportion = @homework.homework_type == 1 ? 1.0 : 0.4 else - homework_detail_manual.ta_proportion = homework.homework_type == 1 ? 0.6 : 0.3 + homework_detail_manual.ta_proportion = @homework.homework_type == 1 ? 0.6 : 0.3 end end