编辑部门url

dev_partners
cxt 6 years ago
parent 14b2ce10da
commit 09abc5511f

@ -1416,7 +1416,8 @@ end
def update_depart_identifier
if params[:depart] && params[:identifier]
@department = Department.where(:id => params[:depart]).first
@department.update_attributes(:identifier => params[:identifier]) if @department.present?
identifier = params[:identifier].strip.blank? ? nil : params[:identifier].strip
@department.update_attributes(:identifier => identifier) if @department.present?
end
end

Loading…
Cancel
Save