From a05061af73829fa94edbb49283edb51d7f0642f9 Mon Sep 17 00:00:00 2001 From: z9hang Date: Thu, 12 Mar 2015 11:17:36 +0800 Subject: [PATCH] =?UTF-8?q?#1859=20=E8=AF=BE=E7=A8=8B--=E8=B5=84=E6=BA=90?= =?UTF-8?q?=E5=BA=93=EF=BC=9A=E5=85=A8=E7=AB=99=E6=90=9C=E7=B4=A2=E4=B8=AD?= =?UTF-8?q?=E2=80=9C=E9=80=89=E5=85=A5=E6=88=91=E7=9A=84=E5=85=B6=E4=BB=96?= =?UTF-8?q?=E8=AF=BE=E7=A8=8B=E2=80=9D=E5=BC=B9=E5=87=BA=E7=9A=84=E8=AF=BE?= =?UTF-8?q?=E7=A8=8B=E5=88=97=E8=A1=A8=E4=B8=AD=E5=8C=85=E6=8B=AC=E5=BD=93?= =?UTF-8?q?=E5=89=8D=E8=AF=BE=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/helpers/files_helper.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/helpers/files_helper.rb b/app/helpers/files_helper.rb index aace20e6c..9eff409ff 100644 --- a/app/helpers/files_helper.rb +++ b/app/helpers/files_helper.rb @@ -48,7 +48,7 @@ module FilesHelper def courses_check_box_tags(name,courses,current_course,attachment) s = '' courses.each do |course| - if !(attachment.container_type && attachment.container_id == course.id) && is_course_teacher(User.current,course) && course_in_current_or_next_term(course) + if !course_contains_attachment?(course,attachment) && is_course_teacher(User.current,course) && course_in_current_or_next_term(course) s << " [#{get_course_term course}]
" end end