Fixed bug: Zendesk additional fields ending with _id or _ids fail import due to ObjectManager attribute naming limitations.
This commit is contained in:
parent
4ddd3ec29b
commit
c25d7507d5
1 changed files with 1 additions and 1 deletions
|
@ -15,7 +15,7 @@ module Import
|
|||
private
|
||||
|
||||
def local_name(object_field)
|
||||
@local_name ||= remote_name(object_field).gsub(%r{[\s\/]}, '_').underscore.gsub(/_{2,}/, '_')
|
||||
@local_name ||= remote_name(object_field).gsub(%r{[\s\/]}, '_').underscore.gsub(/_{2,}/, '_').gsub(/_id(s?)$/, '_no\1')
|
||||
end
|
||||
|
||||
def remote_name(object_field)
|
||||
|
|
Loading…
Reference in a new issue