|
|
|
@ -178,7 +178,8 @@ private
|
|
|
|
|
attachments_results = nil
|
|
|
|
|
@obj_pages = nil
|
|
|
|
|
@obj = nil
|
|
|
|
|
|
|
|
|
|
@result = nil
|
|
|
|
|
|
|
|
|
|
# 这里为了提高系统的响应速度 把搜索结果放到case中去了
|
|
|
|
|
case obj_flag
|
|
|
|
|
when '1' then
|
|
|
|
@ -198,7 +199,11 @@ private
|
|
|
|
|
@obj_pages,@forums_results,@results_count = for_pagination(get_forums_by_tag(selected_tags))
|
|
|
|
|
when '6'
|
|
|
|
|
@obj = Attachment.find_by_id(obj_id)
|
|
|
|
|
@obj_pages, attachments_results, @results_count = for_pagination(get_attachments_by_tag(selected_tags))
|
|
|
|
|
|
|
|
|
|
# modifed by Long Jun
|
|
|
|
|
# this is used to find the attachments that came from the same project and tagged with the same tag.
|
|
|
|
|
@result = get_attachments_by_project_tag(selected_tags, @obj)
|
|
|
|
|
@obj_pages, attachments_results, @results_count = for_pagination(@result)
|
|
|
|
|
else
|
|
|
|
|
@obj = nil
|
|
|
|
|
end
|
|
|
|
|