diff options
author | Andrey Kumanyaev <me@zzet.org> | 2013-01-23 18:14:53 +0400 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2013-01-25 00:31:48 +0400 |
commit | d721863382b3e2cedae03e8f235809eb409224c0 (patch) | |
tree | a04ee2bf3aa971bd86970ddde92fdb489fceca88 /app | |
parent | 31d84d71d3659dc815875f39f466cdcf81d97aaf (diff) |
Fix little bugs
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/teams_controller.rb | 2 | ||||
-rw-r--r-- | app/helpers/user_teams_helper.rb | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/app/controllers/teams_controller.rb b/app/controllers/teams_controller.rb index 169ee34f4ec..ea060b3a44d 100644 --- a/app/controllers/teams_controller.rb +++ b/app/controllers/teams_controller.rb @@ -54,6 +54,7 @@ class TeamsController < ApplicationController # Get authored or assigned open merge requests def merge_requests + projects @merge_requests = MergeRequest.of_user_team(user_team) @merge_requests = FilterContext.new(@merge_requests, params).execute @merge_requests = @merge_requests.recent.page(params[:page]).per(20) @@ -61,6 +62,7 @@ class TeamsController < ApplicationController # Get only assigned issues def issues + projects @issues = Issue.of_user_team(user_team) @issues = FilterContext.new(@issues, params).execute @issues = @issues.recent.page(params[:page]).per(20) diff --git a/app/helpers/user_teams_helper.rb b/app/helpers/user_teams_helper.rb index 60deb9e09e5..2055bb3c8bc 100644 --- a/app/helpers/user_teams_helper.rb +++ b/app/helpers/user_teams_helper.rb @@ -9,9 +9,9 @@ module UserTeamsHelper case entity when 'issue' then - issues_team_path(@user_team, options) + issues_team_path(@team, options) when 'merge_request' - merge_requests_team_path(@user_team, options) + merge_requests_team_path(@team, options) end end |