Renamed #_issues_path to #_project_issues_path.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11076 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2012-12-23 15:19:57 +00:00
parent e921d70e53
commit 3ef7f5855e
3 changed files with 6 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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