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