diff --git a/lib/import/base_resource.rb b/lib/import/base_resource.rb index f96a2aeda..93a57321f 100644 --- a/lib/import/base_resource.rb +++ b/lib/import/base_resource.rb @@ -156,6 +156,10 @@ module Import else state[association] = source.send(association) end + + # sort arrays to avoid wrong change detection + next if !state[association].respond_to?(:sort!) + state[association].sort! end state end