@@ -279,7 +279,7 class IssuesController < ApplicationController | |||||
279 | redirect_to project_issues_path(moved_issues.map(&:project).first) |
|
279 | redirect_to project_issues_path(moved_issues.map(&:project).first) | |
280 | end |
|
280 | end | |
281 | else |
|
281 | else | |
282 | redirect_back_or_default _issues_path(@project) |
|
282 | redirect_back_or_default _project_issues_path(@project) | |
283 | end |
|
283 | end | |
284 | end |
|
284 | end | |
285 |
|
285 | |||
@@ -312,7 +312,7 class IssuesController < ApplicationController | |||||
312 | end |
|
312 | end | |
313 | end |
|
313 | end | |
314 | respond_to do |format| |
|
314 | respond_to do |format| | |
315 | format.html { redirect_back_or_default _issues_path(@project) } |
|
315 | format.html { redirect_back_or_default _project_issues_path(@project) } | |
316 | format.api { render_api_ok } |
|
316 | format.api { render_api_ok } | |
317 | end |
|
317 | end | |
318 | end |
|
318 | end |
@@ -59,7 +59,7 class QueriesController < ApplicationController | |||||
59 |
|
59 | |||
60 | if @query.save |
|
60 | if @query.save | |
61 | flash[:notice] = l(:notice_successful_create) |
|
61 | flash[:notice] = l(:notice_successful_create) | |
62 | redirect_to _issues_path(@project, :query_id => @query) |
|
62 | redirect_to _project_issues_path(@project, :query_id => @query) | |
63 | else |
|
63 | else | |
64 | render :action => 'new', :layout => !request.xhr? |
|
64 | render :action => 'new', :layout => !request.xhr? | |
65 | end |
|
65 | end | |
@@ -77,7 +77,7 class QueriesController < ApplicationController | |||||
77 |
|
77 | |||
78 | if @query.save |
|
78 | if @query.save | |
79 | flash[:notice] = l(:notice_successful_update) |
|
79 | flash[:notice] = l(:notice_successful_update) | |
80 | redirect_to _issues_path(@project, :query_id => @query) |
|
80 | redirect_to _project_issues_path(@project, :query_id => @query) | |
81 | else |
|
81 | else | |
82 | render :action => 'edit' |
|
82 | render :action => 'edit' | |
83 | end |
|
83 | end | |
@@ -85,7 +85,7 class QueriesController < ApplicationController | |||||
85 |
|
85 | |||
86 | def destroy |
|
86 | def destroy | |
87 | @query.destroy |
|
87 | @query.destroy | |
88 | redirect_to _issues_path(@project, :set_filter => 1) |
|
88 | redirect_to _project_issues_path(@project, :set_filter => 1) | |
89 | end |
|
89 | end | |
90 |
|
90 | |||
91 | private |
|
91 | private |
@@ -21,7 +21,7 module RoutesHelper | |||||
21 |
|
21 | |||
22 | # Returns the path to project issues or to the cross-project |
|
22 | # Returns the path to project issues or to the cross-project | |
23 | # issue list if project is nil |
|
23 | # issue list if project is nil | |
24 | def _issues_path(project, *args) |
|
24 | def _project_issues_path(project, *args) | |
25 | if project |
|
25 | if project | |
26 | project_issues_path(project, *args) |
|
26 | project_issues_path(project, *args) | |
27 | else |
|
27 | else |
General Comments 0
You need to be logged in to leave comments.
Login now