老师给未提交的作品评语时不应变为已提交
This commit is contained in:
parent
6903639699
commit
eaaca22e4d
|
@ -811,7 +811,7 @@ class StudentWorkController < ApplicationController
|
|||
@new_score.comment = params[:new_form][:user_message] if params[:new_form] && params[:new_form][:user_message] && params[:new_form][:user_message] != ""
|
||||
@new_score.user_id = User.current.id
|
||||
@new_score.student_work_id = @work.id
|
||||
if @is_teacher && @work.work_status == 0
|
||||
if @is_teacher && !@new_score.score.nil? && @work.work_status == 0
|
||||
@work.update_attributes(:work_status => 1, :commit_time => Time.now)
|
||||
end
|
||||
if User.current.admin?
|
||||
|
|
Loading…
Reference in New Issue