匿评申诉为被处理时,仅申诉人看到的界面显示少了分隔线(其它用户的界面显示正常)

This commit is contained in:
cxt 2017-02-13 14:12:46 +08:00
parent 4930e36503
commit 4cd573efe6
1 changed files with 1 additions and 1 deletions

View File

@ -1253,7 +1253,7 @@ class StudentWorkController < ApplicationController
def appeal_anonymous_score
@student_work_score = StudentWorksScore.where("id = #{params[:score_id].to_i}").first
@is_last = params[:is_last]
@is_last = params[:is_last] == "true" ? true : false
if @student_work_score
@student_work_score.update_column('appeal_status', 1)
score_appeal = StudentWorksScoresAppeal.create(:user_id => User.current.id, :student_works_score_id => @student_work_score.id, :comment => params[:appeal][:comment], :appeal_status => 1)