Content
Activity View broken after enabling more filters. Am i missing something?
Added by Marc Braun over 10 years ago
After installing plugins ( meeting, documents, etc ) I realized that the Activity View is broken after ticking more filters.
Causes a 500.
I created a demo to see if it’s a problem with my installation but the same behavior is present with the demo instance on openproject-demo.org.
Just create an instance go to Activity and enable more filters.
Am I missing something here?
Also when I click on the user who is linked with that activity ( in the case of the demo instance ( OpenProjectAdmin ) I also get a 500
independent of selected filters.
I don’t think I could be missing something on that one.
Edit: It’s the documents module.
As soon as a document is uploaded accessing the activity view causes a 500 if document filter is enabled.
The log entry for that problem.
Activity::BaseActivityProvider::UndefinedEventTypeError (Abstract method event_type called): app/models/activity/base_activity_provider.rb:131:in `event_type' app/models/activity/base_activity_provider.rb:135:in `event_name' app/models/activity/base_activity_provider.rb:89:in `block in format_event' app/models/activity/base_activity_provider.rb:88:in `each' app/models/activity/base_activity_provider.rb:88:in `format_event' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:229:in `block in fill_events' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:212:in `each' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:212:in `each_with_object' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:212:in `fill_events' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:141:in `find_events_for_class' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:96:in `block in find_events' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:95:in `each' lib/plugins/acts_as_activity_provider/lib/acts_as_activity_provider.rb:95:in `find_events' lib/redmine/activity/fetcher.rb:98:in `block (2 levels) in events' lib/redmine/activity/fetcher.rb:97:in `each' lib/redmine/activity/fetcher.rb:97:in `block in events' lib/redmine/activity/fetcher.rb:96:in `each' lib/redmine/activity/fetcher.rb:96:in `events' app/controllers/users_controller.rb:95:in `show'
Final edit: fixed it and saying it’s slightly awkward is a monumental understatement.
The document activity model lacks the obvious method event_type in dev and stable. I’m going with ‘document’ for now…