Skip to content

Commit

Permalink
Merge pull request #67 from FronteraConsulting/master
Browse files Browse the repository at this point in the history
Fixed issue #59: Nils being inserted into updates that don't have them.
  • Loading branch information
yatish27 authored Sep 29, 2018
2 parents 3ff3f41 + dc88a4a commit 299b118
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/salesforce_bulk_api/job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def create_sobject(keys, r)
sobject_xml += r[k].to_s
end
sobject_xml += "</#{k}>"
elsif @send_nulls && !@no_null_list.include?(k)
elsif @send_nulls && !@no_null_list.include?(k) && r.key?(k)
sobject_xml += "<#{k} xsi:nil=\"true\"/>"
end
end
Expand Down

0 comments on commit 299b118

Please sign in to comment.