修改单位的省市个人资料省市也得修改

This commit is contained in:
yuanke 2016-07-29 22:09:03 +08:00
parent 1704462986
commit dce84484ff
1 changed files with 8 additions and 0 deletions

View File

@ -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