Fix bug.
This commit is contained in:
parent
c060993ca3
commit
1aa6f9c109
|
@ -114,12 +114,6 @@ class AsksController < ApplicationController
|
||||||
end
|
end
|
||||||
def index
|
def index
|
||||||
@params = OrbitHelper.params
|
@params = OrbitHelper.params
|
||||||
case ((@params['method'] rescue params['method']) rescue nil)
|
|
||||||
when 'thank'
|
|
||||||
render :thank and return {}
|
|
||||||
when 'sorry'
|
|
||||||
render :sorry and return {}
|
|
||||||
end
|
|
||||||
referer_url = OrbitHelper.request.path
|
referer_url = OrbitHelper.request.path
|
||||||
if @params['item'].to_s.empty?
|
if @params['item'].to_s.empty?
|
||||||
get_layout_type
|
get_layout_type
|
||||||
|
@ -156,7 +150,7 @@ class AsksController < ApplicationController
|
||||||
end
|
end
|
||||||
csrf_value = OrbitHelper.request.session[:_csrf_token] || SecureRandom.base64(32)
|
csrf_value = OrbitHelper.request.session[:_csrf_token] || SecureRandom.base64(32)
|
||||||
token_tag = hidden_field_tag('authenticity_token',csrf_value)
|
token_tag = hidden_field_tag('authenticity_token',csrf_value)
|
||||||
switch_form = cal_switch_form(ask_settings,categories,token_tag,referer_url, params[:id])
|
switch_form = cal_switch_form(ask_settings,categories,token_tag,referer_url, @params[:id])
|
||||||
tags = module_app.tags
|
tags = module_app.tags
|
||||||
ask_question = AskQuestion.new(id: nil)
|
ask_question = AskQuestion.new(id: nil)
|
||||||
email_regex = @default_ask_setting.get_email_regex(true)
|
email_regex = @default_ask_setting.get_email_regex(true)
|
||||||
|
|
Loading…
Reference in New Issue