Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Include only 'active' projects #33

Open
ryaneberly opened this issue May 5, 2014 · 1 comment
Open

Include only 'active' projects #33

ryaneberly opened this issue May 5, 2014 · 1 comment

Comments

@ryaneberly
Copy link

We patched our copy of redmine_mylyn_connector b/c we have over 700 projects and most of them live for a brief period and then are closed.

In projects_controller.rb
@projects = Project.find(:all,
:joins => :enabled_modules,
:conditions => [ "enabled_modules.name = 'issue_tracking' AND #{Project.visible_condition(User.current)}"])

Changed to
@projects = Project.active.visible.all

I do not personally think filtering out projects w/o tasks is necessary, but in any case, the addition of ".active" would be appreciated

Thanks!

@stolp
Copy link

stolp commented Jul 31, 2014

I second that this would be a very useful patch here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants