advantage_quickbase 0.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/quickbase.rb +1 -2
- metadata +1 -1
data/lib/quickbase.rb
CHANGED
@@ -67,7 +67,6 @@ module AdvantageQuickbase
|
|
67
67
|
|
68
68
|
def add_record( db_id, new_values )
|
69
69
|
xml = build_update_xml( new_values )
|
70
|
-
|
71
70
|
result = send_request( :addRecord, db_id, nil, xml )
|
72
71
|
|
73
72
|
get_tag_value( result, :rid )
|
@@ -213,7 +212,7 @@ module AdvantageQuickbase
|
|
213
212
|
if record_id
|
214
213
|
xml += "<key>#{record_id}</key>"
|
215
214
|
end
|
216
|
-
xml += new_values.map { |field_id, value| "<field fid='#{field_id}'>#{value}</field>" }.join()
|
215
|
+
xml += new_values.map { |field_id, value| "<field fid='#{field_id}'>#{value.to_s.encode(xml: :text)}</field>" }.join()
|
217
216
|
xml += "<ticket>#{@ticket}</ticket>"
|
218
217
|
xml += '</qdbapi>'
|
219
218
|
end
|