分组作业编辑时“基于项目实施”的设置不起作用

This commit is contained in:
cxt 2016-10-08 18:06:09 +08:00
parent 4a666d6972
commit 12d70c6999
2 changed files with 3 additions and 3 deletions

View File

@ -50,10 +50,10 @@ gem 'elasticsearch-model'
gem 'elasticsearch-rails'
#rails 3.2.22.2 bug
gem "test-unit", "~>3.0"
#gem "test-unit", "~>3.0"
### profile
gem 'oneapm_rpm'
#gem 'oneapm_rpm'
group :development do
gem 'grape-swagger'

View File

@ -146,7 +146,7 @@ class HomeworkCommonController < ApplicationController
@homework_detail_group = @homework.homework_detail_group
@homework_detail_group.min_num = params[:min_num].to_i if params[:min_num]
@homework_detail_group.max_num = params[:max_num].to_i if params[:max_num]
@homework_detail_group.base_on_project = params[:base_on_project].to_i if params[:base_on_project]
@homework_detail_group.base_on_project = params[:base_on_project] ? 1 : 0
end
@homework.anonymous_comment = params[:homework_common][:anonymous_comment] ? params[:homework_common][:anonymous_comment].to_i : 1