diff options
author | spag <spag@golwen.net> | 2013-01-25 10:54:48 +0100 |
---|---|---|
committer | spag <spag@golwen.net> | 2013-01-25 10:54:48 +0100 |
commit | 7cf109b32f3447454a084e31d2086667a896afb8 (patch) | |
tree | b0f4f05757e56961b2defa5339048b3ba08bf335 /app | |
parent | 57e1f57912ed16873dd6a4f550d01cc050d573ce (diff) |
fixed undo/redo errors
Diffstat (limited to 'app')
-rw-r--r-- | app/controllers/config_snom_controller.rb | 2 |
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( |