summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorspag <spag@golwen.net>2013-01-25 10:54:48 +0100
committerspag <spag@golwen.net>2013-01-25 10:54:48 +0100
commit7cf109b32f3447454a084e31d2086667a896afb8 (patch)
treeb0f4f05757e56961b2defa5339048b3ba08bf335 /app
parent57e1f57912ed16873dd6a4f550d01cc050d573ce (diff)
fixed undo/redo errors
Diffstat (limited to 'app')
-rw-r--r--app/controllers/config_snom_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/config_snom_controller.rb b/app/controllers/config_snom_controller.rb
index b697488..e797a43 100644
--- a/app/controllers/config_snom_controller.rb
+++ b/app/controllers/config_snom_controller.rb
@@ -159,7 +159,7 @@ class ConfigSnomController < ApplicationController
if ! params[:sip_account].blank?
@sip_account = @phone.sip_accounts.where({ :id => params[:sip_account].to_i }).first
if ! @sip_account && @phone.fallback_sip_account && @phone.fallback_sip_account.id == params[:sip_account].to_i
- @sip_account = @phone.fallback_sip_account.where({ :id => params[:sip_account].to_i }).first
+ @sip_account = @phone.fallback_sip_account
end
if ! @sip_account
render(