lib/osm/member.rb in osm-1.2.18.dev.7 vs lib/osm/member.rb in osm-1.2.18.dev.8
- old
+ new
@@ -703,10 +703,10 @@
value = send(attr)
value = 'yes' if value.eql?(true)
data[attribute_map[attr]] = value
end
custom.keys.select{ |a| force || custom.changes.keys.include?(a) }.each do |attr|
- data["data[#{key}]"] = custom[key]
+ data["data[#{attr}]"] = custom[attr]
end
updated = false
unless data.empty?
result = api.perform_query("ext/customdata/?action=update§ion_id=#{member.section_id}", {