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