summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-07-25 08:16:11 +0200
committerPeter Kozak <spag@golwen.net>2013-07-25 08:16:11 +0200
commit07f1bd571480dd091d307c815c4942e9cde60180 (patch)
tree22937ac9c94fc9a04786179b78897baba61bcc4f
parent2d7d63a65abb86d54d3cd4d188ee60ee058c9f72 (diff)
keys and type variables needed for call_history/phonebook display
-rw-r--r--app/controllers/config_snom_controller.rb11
1 files changed, 3 insertions, 8 deletions
diff --git a/app/controllers/config_snom_controller.rb b/app/controllers/config_snom_controller.rb
index 9e5e18f..3beed2d 100644
--- a/app/controllers/config_snom_controller.rb
+++ b/app/controllers/config_snom_controller.rb
@@ -66,6 +66,9 @@ class ConfigSnomController < ApplicationController
@sip_account = @phone.sip_accounts.where({ :id => params[:sip_account].to_i }).first
end
end
+
+ @type = params[:type].blank? ? nil : params[:type].to_s.strip.downcase
+ @dialpad_keys = params[:keys].blank? ? nil : params[:keys].to_s.strip
}
def show
@@ -272,14 +275,6 @@ class ConfigSnomController < ApplicationController
end
end
- if ! params[:type].blank?
- @type = params[:type].to_s.strip.downcase
- end
-
- if ! params[:keys].blank?
- @dialpad_keys = params[:keys].to_s.strip
- end
-
if ! @phone
render(
:status => 404,