correctly find the project_id when collecting activity

pull/286/head
Philipp Tessenow 11 years ago
parent e23186ce6c
commit c0c276ff17
  1. 2
      app/controllers/activities_controller.rb

@ -83,7 +83,7 @@ class ActivitiesController < ApplicationController
project_ids = []
if event.respond_to?(:changed_data) and event.changed_data['project_id']
project_ids = event.changed_data['project_id']
elsif event.respond_to?(:project_id)
elsif event.respond_to?(:project_id) or event.journaled.respond_to?(:project_id)
project_ids = [ event.project_id ]
end
if project_ids.empty?

Loading…
Cancel
Save