mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-22 04:35:45 +08:00
fix bug
This commit is contained in:
@@ -15,7 +15,7 @@ class Organizations::ClasController < Organizations::BaseController
|
||||
return tip_exception("组织已存在CLA!")
|
||||
else
|
||||
Organizations::CreateClaForm.new(cla_params).validate!
|
||||
@cla = Cla.build(cla_params)
|
||||
@cla = Cla.build(cla_params,@organization.id)
|
||||
end
|
||||
end
|
||||
rescue Exception => e
|
||||
@@ -57,7 +57,7 @@ class Organizations::ClasController < Organizations::BaseController
|
||||
end
|
||||
|
||||
def load_cla
|
||||
@cla = Cla.find_by!(organization:params[:organization_id], key: params[:id])
|
||||
@cla = Cla.find_by!(organization:@organization, key: params[:id])
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user