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 committed 2012-12-23 15:19:57 +00:00
1 parent e921d70e53
commit 3ef7f5855e
3 files changed
+6 -6

No files matched your search

+2 -2
View File
@@ -279,7 +279,7 @@ class IssuesController < ApplicationController
redirect_to project_issues_path(moved_issues.map(&:project).first) redirect_to project_issues_path(moved_issues.map(&:project).first)
end end
else else
redirect_back_or_default _issues_path(@project) redirect_back_or_default _project_issues_path(@project)
end end
end end
@@ -312,7 +312,7 @@ class IssuesController < ApplicationController
end end
end end
respond_to do |format| 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 } format.api { render_api_ok }
end end
end end
+3 -3
View File
@@ -59,7 +59,7 @@ class QueriesController < ApplicationController
if @query.save if @query.save
flash[:notice] = l(:notice_successful_create) flash[:notice] = l(:notice_successful_create)
redirect_to _issues_path(@project, :query_id => @query) redirect_to _project_issues_path(@project, :query_id => @query)
else else
render :action => 'new', :layout => !request.xhr? render :action => 'new', :layout => !request.xhr?
end end
@@ -77,7 +77,7 @@ class QueriesController < ApplicationController
if @query.save if @query.save
flash[:notice] = l(:notice_successful_update) flash[:notice] = l(:notice_successful_update)
redirect_to _issues_path(@project, :query_id => @query) redirect_to _project_issues_path(@project, :query_id => @query)
else else
render :action => 'edit' render :action => 'edit'
end end
@@ -85,7 +85,7 @@ class QueriesController < ApplicationController
def destroy def destroy
@query.destroy @query.destroy
redirect_to _issues_path(@project, :set_filter => 1) redirect_to _project_issues_path(@project, :set_filter => 1)
end end
private private
+1 -1
View File
@@ -21,7 +21,7 @@ module RoutesHelper
# Returns the path to project issues or to the cross-project # Returns the path to project issues or to the cross-project
# issue list if project is nil # issue list if project is nil
def _issues_path(project, *args) def _project_issues_path(project, *args)
if project if project
project_issues_path(project, *args) project_issues_path(project, *args)
else else