diff --git a/app/controllers/exercise_controller.rb b/app/controllers/exercise_controller.rb index 7a4f91fa..23024a78 100644 --- a/app/controllers/exercise_controller.rb +++ b/app/controllers/exercise_controller.rb @@ -448,7 +448,7 @@ class ExerciseController < ApplicationController def update_exercise_question @exercise_question = ExerciseQuestion.find params[:exercise_question] @exercise_question.question_title = params[:question_title].nil? || params[:question_title].empty? ? l(:label_enter_single_title) : params[:question_title] - @exercise_question.question_score = params[:question_score] + @exercise_question.question_score = params[:question_score] if @exercise_question.question_type != 5 # 处理选项:如果选了某个选项,那么则要删除之前的选项 if params[:question_answer] @exercise_question.exercise_choices.each do |answer| diff --git a/app/views/exercise/_edit_MC.html.erb b/app/views/exercise/_edit_MC.html.erb index cb74fa20..a78d5661 100644 --- a/app/views/exercise/_edit_MC.html.erb +++ b/app/views/exercise/_edit_MC.html.erb @@ -51,7 +51,7 @@
  • - +

    温馨提示:[单选题]属于客观题将由系统自动评分,请设置标准答案 diff --git a/app/views/exercise/_edit_MCQ.html.erb b/app/views/exercise/_edit_MCQ.html.erb index 1939ce13..3d41ca10 100644 --- a/app/views/exercise/_edit_MCQ.html.erb +++ b/app/views/exercise/_edit_MCQ.html.erb @@ -56,7 +56,7 @@

  • - +

    温馨提示:[多选题]属于客观题将由系统自动评分,请设置标准答案 diff --git a/app/views/exercise/_edit_multi.html.erb b/app/views/exercise/_edit_multi.html.erb index 9f2b16e0..69691b61 100644 --- a/app/views/exercise/_edit_multi.html.erb +++ b/app/views/exercise/_edit_multi.html.erb @@ -23,7 +23,7 @@

  • - +

    温馨提示:[简答题]属于主观题需要人工评分,未作答的情况下系统将自动评分 diff --git a/app/views/exercise/_edit_shixun.html.erb b/app/views/exercise/_edit_shixun.html.erb index 4d60a41c..b7caa087 100644 --- a/app/views/exercise/_edit_shixun.html.erb +++ b/app/views/exercise/_edit_shixun.html.erb @@ -18,7 +18,7 @@ <%= index + 1 %> <%= exercise_challenge.challenge.subject %> - +

  • diff --git a/app/views/exercise/_edit_single.html.erb b/app/views/exercise/_edit_single.html.erb index 91037d46..4adc14f1 100644 --- a/app/views/exercise/_edit_single.html.erb +++ b/app/views/exercise/_edit_single.html.erb @@ -46,7 +46,7 @@
  • - +

    温馨提示:[填空题]属于客观题将由系统自动评分,请设置标准答案