匿评分配数量默认为3

This commit is contained in:
sw 2015-08-26 17:42:52 +08:00
parent 5b9c9312f5
commit 650d0c8cb5
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ class UsersController < ApplicationController
homework_detail_manual.comment_status = 1
homework_detail_manual.evaluation_start = Time.now
homework_detail_manual.evaluation_end = Time.now
homework_detail_manual.evaluation_num = params[:evaluation_num]
homework_detail_manual.evaluation_num = params[:evaluation_num] || 3
homework_detail_manual.absence_penalty = 0
homework.homework_detail_manual = homework_detail_manual