Mercurial > hg > soundsoftware-site
changeset 1248:1b44eeb49c5a redmine-2.2-integration
Removed unecessary code (saving tags to a project is handled on the project model patch)
author | luisf <luis.figueira@eecs.qmul.ac.uk> |
---|---|
date | Wed, 03 Apr 2013 15:30:43 +0100 |
parents | 1aee31f54e13 |
children | 774beb9b79da |
files | plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb |
diffstat | 1 files changed, 0 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb Wed Apr 03 15:28:05 2013 +0100 +++ b/plugins/redmine_tags/lib/redmine_tags/patches/projects_controller_patch.rb Wed Apr 03 15:30:43 2013 +0100 @@ -10,26 +10,12 @@ unloadable skip_before_filter :authorize, :only => [:set_fieldset_status] skip_before_filter :find_project, :only => [:set_fieldset_status] - before_filter :add_tags_to_project, :only => [:save, :update] alias :index filtered_index end end module InstanceMethods - - def add_tags_to_project - - if params && params[:project] && !params[:project][:tag_list].nil? - old_tags = @project.tag_list.to_s.downcase - new_tags = params[:project][:tag_list].to_s.downcase - - unless (old_tags == new_tags) - @project.tag_list = ActionController::Base.helpers.strip_tags(new_tags) - end - end - end - def paginate_projects sort_init 'name' sort_update %w(name lft created_on updated_on)