CRM-19620 - Restore matching contacts in trash prior to import along with Unit Test.
authorJamie McClelland <jm@mayfirst.org>
Tue, 8 Nov 2016 19:45:45 +0000 (14:45 -0500)
committerAlok Patel <alok@agileware.com.au>
Mon, 16 Oct 2017 03:03:09 +0000 (08:33 +0530)
commit13943a5010f60893d4e3df15c784f518d44a7995
tree6bce0eefa186fac9dcccdc1b1bb06f7fb349938a
parent9343af8fc0f36117994c8893b5f7452505988fc7
CRM-19620 - Restore matching contacts in trash prior to import along with Unit Test.

This avoids duplicate key errors. If we don't restore and return the
deleted contact when we have a match on external_identifier, then
we end up with a key error.
CRM/Contact/Import/Parser/Contact.php
tests/phpunit/CRM/Contact/Import/Parser/ContactTest.php