配置完点确定,自动跳转
This commit is contained in:
parent
4797cbe65d
commit
ebb2f30f3b
|
@ -220,7 +220,11 @@ class OrganizationsController < ApplicationController
|
|||
#@organization.name = params[:organization][:name]
|
||||
@organization.save
|
||||
respond_to do |format|
|
||||
format.html { redirect_to setting_organization_path(@organization)}
|
||||
if @organization.show_mode == 1
|
||||
format.html { redirect_to organization_path(@organization)}
|
||||
else
|
||||
format.html { redirect_to setting_organization_path(@organization)}
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue