From c25d7507d51e5eb9a836417f19fe7559bf8e8d5b Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Fri, 18 Aug 2017 16:03:26 +0200 Subject: [PATCH] Fixed bug: Zendesk additional fields ending with _id or _ids fail import due to ObjectManager attribute naming limitations. --- lib/import/zendesk/object_field.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/import/zendesk/object_field.rb b/lib/import/zendesk/object_field.rb index 7457cf1c2..814a8e913 100644 --- a/lib/import/zendesk/object_field.rb +++ b/lib/import/zendesk/object_field.rb @@ -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)