竞赛-评分设置:启用在线评审不可用

This commit is contained in:
cxt 2017-01-13 15:59:19 +08:00
parent b02c272998
commit eec1baeaa0
1 changed files with 2 additions and 1 deletions

View File

@ -242,7 +242,8 @@ class WorksController < ApplicationController
def set_score_rule
# 未启动在线评审时才能更改评审参数
if @contestwork.work_status < 3
@contestwork.online_evaluation = params[:online_evaluation] ? 1 : 0
@contestwork.online_evaluation = params[:online_evaluation].to_i ? 1 : 0
@contestwork.save
# 如果开启在线评审
if params[:online_evaluation]