diff --git a/app/controllers/tags_controller.rb b/app/controllers/tags_controller.rb index 1d193ef42..35e99dc6c 100644 --- a/app/controllers/tags_controller.rb +++ b/app/controllers/tags_controller.rb @@ -53,6 +53,7 @@ class TagsController < ApplicationController def add_tag @tag = params[:tag] + @show_flag = params[:show_flag] $selected_tags << @tag $related_tags.delete(@tag) @@ -63,6 +64,7 @@ class TagsController < ApplicationController def delete_tag @tag = params[:tag] + @show_flag = params[:show_flag] $related_tags << @tag $selected_tags.delete(@tag) diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index d4738a831..cbe57d1c7 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -85,7 +85,7 @@ module ProjectsHelper # this method is used to get all projects that tagged one tag # added by william def get_projects_by_tag(tag_name) - Project.tagged_with(tag_name).by_join_date + Project.tagged_with(tag_name) end end diff --git a/app/views/tags/_related_tags.html.erb b/app/views/tags/_related_tags.html.erb index b7ebd5899..84fb06923 100644 --- a/app/views/tags/_related_tags.html.erb +++ b/app/views/tags/_related_tags.html.erb @@ -1,9 +1,11 @@ <% if related_tags %>