Adds provider reference to event

pull/712/head
Hagen Schink 11 years ago committed by Sebastian Schuster
parent 0777c605b1
commit 5143f525e2
  1. 6
      lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb

@ -55,7 +55,8 @@ module Redmine
end
end
Event = Struct.new(:title,
Event = Struct.new(:provider,
:title,
:description,
:author_id,
:author,
@ -115,7 +116,8 @@ module Redmine
def fill_events(events)
events.each_with_object([]) do |e, l|
event = Redmine::Acts::ActivityProvider::Event.new(nil,
event = Redmine::Acts::ActivityProvider::Event.new(self,
nil,
e['event_description'],
e['event_author'].to_i,
nil,

Loading…
Cancel
Save