summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-03-07 07:38:44 -0500
committerPeter Kozak <spag@golwen.net>2013-03-07 07:38:44 -0500
commit678baf479066ad6b517b3a97925a7e37bf5327e4 (patch)
treeaebfc00389fefd2fc136cc50ae5eccf5b17f9fd0 /app/controllers
parent3cf3b921ee398472f2663cc1210932429f7710d9 (diff)
softkey form fixed
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/softkeys_controller.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/softkeys_controller.rb b/app/controllers/softkeys_controller.rb
index 9179d8c..6727de1 100644
--- a/app/controllers/softkeys_controller.rb
+++ b/app/controllers/softkeys_controller.rb
@@ -2,7 +2,7 @@ class SoftkeysController < ApplicationController
load_and_authorize_resource :sip_account, :except => [:sort]
load_and_authorize_resource :softkey, :through => [:sip_account], :except => [:sort]
- before_filter :set_available_softkey_functions, :only => [ :new, :edit, :update ]
+ before_filter :set_available_softkey_functions, :only => [ :new, :edit, :update, :create ]
before_filter :spread_breadcrumbs, :except => [:sort]
def index
@@ -35,6 +35,7 @@ class SoftkeysController < ApplicationController
redirect_to sip_account_softkey_path(@softkey.sip_account, @softkey), :notice => t('softkeys.controller.successfuly_updated')
else
delete_call_forward_softkey_if_no_callforward_is_available
+
render :edit
end
end