diff --git a/app/controllers/student_works_controller.rb b/app/controllers/student_works_controller.rb index a4e08b90a..b7a6953a5 100644 --- a/app/controllers/student_works_controller.rb +++ b/app/controllers/student_works_controller.rb @@ -334,7 +334,7 @@ class StudentWorksController < ApplicationController @work.update_attributes(update_time: Time.now) # 补交附件时给评阅过作品的教师、助教发消息 - unless @work.student_works_scores.where.not(score: nil).where(reviewer_role: [1, 2]).pluck(user_id).uniq.blank? + unless @work.student_works_scores.where.not(score: nil).where(reviewer_role: [1, 2]).pluck(:user_id).uniq.blank? ResubmitStudentWorkNotifyJob.perform_later(@homework.id, [current_user.id]) end diff --git a/app/decorators/tiding_decorator.rb b/app/decorators/tiding_decorator.rb index 9dc439377..4003ffb94 100644 --- a/app/decorators/tiding_decorator.rb +++ b/app/decorators/tiding_decorator.rb @@ -135,7 +135,7 @@ module TidingDecorator end def delete_course_content - I18n.t(locale_format) % container.name + I18n.t(locale_format) % belong_container.name end def delete_course_member_content