修改单位的省市个人资料省市也得修改
This commit is contained in:
parent
1704462986
commit
dce84484ff
|
@ -262,6 +262,14 @@ class SchoolController < ApplicationController
|
|||
applyschool.school.save!
|
||||
end
|
||||
applyschool.save!
|
||||
|
||||
if applyschool.user_id && applyschool.user_id != 0
|
||||
user = User.find(applyschool.user_id)
|
||||
user_extention= user.extensions
|
||||
user_extention.location = province
|
||||
user_extention.location_city = city
|
||||
user_extention.save!
|
||||
end
|
||||
status = 0
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue