We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01253df commit 34e2965Copy full SHA for 34e2965
lib/netsuite_rails/record_sync.rb
@@ -200,7 +200,7 @@ def netsuite_extract_from_record(netsuite_record)
200
netsuite_record.send(netsuite_field)
201
end
202
203
- if field_value.blank?
+ if field_value.nil?
204
# TODO possibly nil out the local value?
205
next
206
@@ -218,7 +218,7 @@ def netsuite_extract_from_record(netsuite_record)
218
219
# TODO should we just check for nil? vs present?
220
221
- if field_hints.has_key?(local_field) && field_value.present?
+ if field_hints.has_key?(local_field) && !field_value.nil?
222
field_value = NetSuiteRails::Transformations.transform(field_hints[local_field], field_value, :pull)
223
224
0 commit comments