Skip to content

Commit 81ff8ae

Browse files
soulcutteriloveitaly
authored andcommitted
Treat @xsi:type as a RecordRef type
1 parent 320377b commit 81ff8ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/netsuite/records/record_ref.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ def initialize(attributes_or_record = {})
1515
attributes.delete(:"@xmlns:platform_core")
1616
@internal_id = attributes.delete(:internal_id) || attributes.delete(:@internal_id)
1717
@external_id = attributes.delete(:external_id) || attributes.delete(:@external_id)
18-
@type = attributes.delete(:type) || attributes.delete(:@type)
18+
@type = attributes.delete(:type) || attributes.delete(:@type) || attributes.delete(:"@xsi:type")
1919
@attributes = attributes
2020
else
2121
record = attributes_or_record

0 commit comments

Comments
 (0)