From 0f6d2676e51739dd34d4d2da6689a94b0caaaea4 Mon Sep 17 00:00:00 2001
From: sw <939547590@qq.com>
Date: Wed, 15 Apr 2015 17:31:15 +0800
Subject: [PATCH] =?UTF-8?q?tag=E4=BA=91=E6=98=BE=E7=A4=BA=E6=90=9C?=
 =?UTF-8?q?=E7=B4=A2=E7=BB=93=E6=9E=9C=E7=9A=84TAG=E4=BA=91?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 app/controllers/files_controller.rb | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/app/controllers/files_controller.rb b/app/controllers/files_controller.rb
index 7c399e996..7033aa8f8 100644
--- a/app/controllers/files_controller.rb
+++ b/app/controllers/files_controller.rb
@@ -60,8 +60,7 @@ class FilesController < ApplicationController
       sort = "#{@sort} #{@order}"
     end
 
-    show_attachments [@course]
-    @tag_list = attachment_tag_list @all_attachments
+    # show_attachments [@course]
 
     begin
       q = "%#{params[:name].strip}%"
@@ -76,6 +75,8 @@ class FilesController < ApplicationController
         @searched_attach = paginateHelper @result,10
       end
 
+      @tag_list = attachment_tag_list @searched_attach
+
     #rescue Exception => e
     #  #render 'stores'
     #  redirect_to search_course_files_url