summaryrefslogtreecommitdiff
path: root/app/controllers/sip_accounts_controller.rb
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-06-27 14:13:20 +0200
committerPeter Kozak <spag@golwen.net>2013-06-27 14:13:20 +0200
commita5916697ce2ab1f74833d19a36dbb0f71c7ed7f5 (patch)
treeed3d3e525b0709689d7fbba0ee6a83af7dfe29b3 /app/controllers/sip_accounts_controller.rb
parentaf5397e415501d0ce3a052538a4e3ed74bf189cd (diff)
run possible_voicemail_accounts on error
Diffstat (limited to 'app/controllers/sip_accounts_controller.rb')
-rw-r--r--app/controllers/sip_accounts_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/sip_accounts_controller.rb b/app/controllers/sip_accounts_controller.rb
index cd34953..3dc5a54 100644
--- a/app/controllers/sip_accounts_controller.rb
+++ b/app/controllers/sip_accounts_controller.rb
@@ -85,6 +85,7 @@ class SipAccountsController < ApplicationController
m = method( :"#{@parent.class.name.underscore}_sip_account_path" )
redirect_to m.( @parent, @sip_account ), :notice => t('sip_accounts.controller.successfuly_updated')
else
+ possible_voicemail_accounts
render :edit
end
end