hicknhack-software / redmine_time_tracker

A time tracker plugin for Redmine
Other
106 stars 32 forks source link

Activites that are only enabled on the project level aren't showing up in the filter. #158

Closed mstarke closed 10 years ago

mstarke commented 10 years ago

Add a activity to Redmine, set it as inactive, set it as active on a project. You can set the activity in the bookings drop-down but it's missing from all filters

sn3ek commented 10 years ago

That seems to be a Redmine problem. An active activity is added as "system activity" but an inactive activity is not added as such. That is why it is not available everywhere... Any clues?

jume-dev commented 10 years ago

take a look at https://github.com/hicknhack-software/redmine_time_tracker/blob/master/app/helpers/time_trackers_helper.rb#L20

this method has probably a bug, maybe TimeEntryActivity.shared is not the right method at all

sn3ek commented 10 years ago

@jume-dev thank you that solved the problem. I removed the active scope from the call and now it shows every activity when no project_id is given.