@@ -218,6 +218,10 class ApplicationController < ActionController::Base | |||||
218 | end |
|
218 | end | |
219 | end |
|
219 | end | |
220 |
|
220 | |||
|
221 | def back_url | |||
|
222 | params[:back_url] || request.env['HTTP_REFERER'] | |||
|
223 | end | |||
|
224 | ||||
221 | def redirect_back_or_default(default) |
|
225 | def redirect_back_or_default(default) | |
222 | back_url = CGI.unescape(params[:back_url].to_s) |
|
226 | back_url = CGI.unescape(params[:back_url].to_s) | |
223 | if !back_url.blank? |
|
227 | if !back_url.blank? |
@@ -349,7 +349,7 class IssuesController < ApplicationController | |||||
349 |
|
349 | |||
350 | @priorities = IssuePriority.all.reverse |
|
350 | @priorities = IssuePriority.all.reverse | |
351 | @statuses = IssueStatus.find(:all, :order => 'position') |
|
351 | @statuses = IssueStatus.find(:all, :order => 'position') | |
352 | @back = params[:back_url] || request.env['HTTP_REFERER'] |
|
352 | @back = back_url | |
353 |
|
353 | |||
354 | render :layout => false |
|
354 | render :layout => false | |
355 | end |
|
355 | end |
General Comments 0
You need to be logged in to leave comments.
Login now