Revision 1244:a3ed5c4d90f0 plugins/redmine_tags/lib/redmine_tags/hooks

View differences:

plugins/redmine_tags/lib/redmine_tags/hooks/model_project_hook.rb
21 21
  module Hooks
22 22
    class ModelProjectHook < Redmine::Hook::ViewListener
23 23
      def controller_project_before_save(context={})
24
        debugger
25 24
        save_tags_to_project(context, true)
26 25
      end
27 26

  
......
30 29
      # cleared on reload. So instead, hook in after the Issue#save to update
31 30
      # this issue's tag_list and call #save ourselves.
32 31
      def controller_projects_before_save(context={})
33
        debugger
34 32
        save_tags_to_project(context, false)
35 33
        context[:project].save
36 34
      end
37 35

  
38 36
      def save_tags_to_project(context, create_journal)
39 37
        params = context[:params]
40
        debugger
41
        logger.error { "WORKING" }
42 38

  
43 39
   #     if params && params[:issue] && !params[:issue][:tag_list].nil?
44 40
   #       old_tags = context[:issue].tag_list.to_s

Also available in: Unified diff