Add default activity providers only once

pull/57/merge
Hagen Schink 12 years ago
parent a1c2e370de
commit 5a824cde62
  1. 2
      lib/redmine/activity.rb

@ -35,7 +35,7 @@ module Redmine
providers = ([] << providers) unless providers.is_a?(Array) providers = ([] << providers) unless providers.is_a?(Array)
@@available_event_types << event_type unless @@available_event_types.include?(event_type) @@available_event_types << event_type unless @@available_event_types.include?(event_type)
@@default_event_types << event_type unless options[:default] == false @@default_event_types << event_type unless @@default_event_types.include?(event_type) || options[:default] == false
@@providers[event_type] += providers @@providers[event_type] += providers
end end
end end

Loading…
Cancel
Save