分组作业编辑时“基于项目实施”的设置不起作用
This commit is contained in:
parent
4a666d6972
commit
12d70c6999
4
Gemfile
4
Gemfile
|
@ -50,10 +50,10 @@ gem 'elasticsearch-model'
|
||||||
gem 'elasticsearch-rails'
|
gem 'elasticsearch-rails'
|
||||||
|
|
||||||
#rails 3.2.22.2 bug
|
#rails 3.2.22.2 bug
|
||||||
gem "test-unit", "~>3.0"
|
#gem "test-unit", "~>3.0"
|
||||||
|
|
||||||
### profile
|
### profile
|
||||||
gem 'oneapm_rpm'
|
#gem 'oneapm_rpm'
|
||||||
|
|
||||||
group :development do
|
group :development do
|
||||||
gem 'grape-swagger'
|
gem 'grape-swagger'
|
||||||
|
|
|
@ -146,7 +146,7 @@ class HomeworkCommonController < ApplicationController
|
||||||
@homework_detail_group = @homework.homework_detail_group
|
@homework_detail_group = @homework.homework_detail_group
|
||||||
@homework_detail_group.min_num = params[:min_num].to_i if params[:min_num]
|
@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.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
|
end
|
||||||
|
|
||||||
@homework.anonymous_comment = params[:homework_common][:anonymous_comment] ? params[:homework_common][:anonymous_comment].to_i : 1
|
@homework.anonymous_comment = params[:homework_common][:anonymous_comment] ? params[:homework_common][:anonymous_comment].to_i : 1
|
||||||
|
|
Loading…
Reference in New Issue