From 3ef7f5855edc1193755097a4ef981ff67ea4ae56 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 23 Dec 2012 15:19:57 +0000 Subject: [PATCH] Renamed #_issues_path to #_project_issues_path. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11076 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- app/controllers/issues_controller.rb | 4 ++-- app/controllers/queries_controller.rb | 6 +++--- app/helpers/routes_helper.rb | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index a48ded5ee..4869d1e2b 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -279,7 +279,7 @@ class IssuesController < ApplicationController redirect_to project_issues_path(moved_issues.map(&:project).first) end else - redirect_back_or_default _issues_path(@project) + redirect_back_or_default _project_issues_path(@project) end end @@ -312,7 +312,7 @@ class IssuesController < ApplicationController end end respond_to do |format| - format.html { redirect_back_or_default _issues_path(@project) } + format.html { redirect_back_or_default _project_issues_path(@project) } format.api { render_api_ok } end end diff --git a/app/controllers/queries_controller.rb b/app/controllers/queries_controller.rb index 4c1203f78..2993b8e86 100644 --- a/app/controllers/queries_controller.rb +++ b/app/controllers/queries_controller.rb @@ -59,7 +59,7 @@ class QueriesController < ApplicationController if @query.save flash[:notice] = l(:notice_successful_create) - redirect_to _issues_path(@project, :query_id => @query) + redirect_to _project_issues_path(@project, :query_id => @query) else render :action => 'new', :layout => !request.xhr? end @@ -77,7 +77,7 @@ class QueriesController < ApplicationController if @query.save flash[:notice] = l(:notice_successful_update) - redirect_to _issues_path(@project, :query_id => @query) + redirect_to _project_issues_path(@project, :query_id => @query) else render :action => 'edit' end @@ -85,7 +85,7 @@ class QueriesController < ApplicationController def destroy @query.destroy - redirect_to _issues_path(@project, :set_filter => 1) + redirect_to _project_issues_path(@project, :set_filter => 1) end private diff --git a/app/helpers/routes_helper.rb b/app/helpers/routes_helper.rb index 5a517aae7..f52dc6df0 100644 --- a/app/helpers/routes_helper.rb +++ b/app/helpers/routes_helper.rb @@ -21,7 +21,7 @@ module RoutesHelper # Returns the path to project issues or to the cross-project # issue list if project is nil - def _issues_path(project, *args) + def _project_issues_path(project, *args) if project project_issues_path(project, *args) else