From: adixon Date: Thu, 16 Jun 2016 19:23:49 +0000 (-0400) Subject: CRM-18973 X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=d4721930fea4efb0ad3aa55995e2c6f986187e22;p=civicrm-core.git CRM-18973 --- diff --git a/CRM/Contribute/BAO/ContributionRecur.php b/CRM/Contribute/BAO/ContributionRecur.php index 02214860de..0159fbbc83 100644 --- a/CRM/Contribute/BAO/ContributionRecur.php +++ b/CRM/Contribute/BAO/ContributionRecur.php @@ -596,7 +596,7 @@ INNER JOIN civicrm_contribution con ON ( con.id = mp.contribution_id ) } foreach ($table as $tableName => $tableColumns) { - $insert = 'INSERT INTO ' . $tableName . ' (' . implode(', ', $tableColumns) . ') '; + $insert = 'INSERT IGNORE INTO ' . $tableName . ' (' . implode(', ', $tableColumns) . ') '; $tableColumns[0] = $targetContributionId; $select = 'SELECT ' . implode(', ', $tableColumns); $from = ' FROM ' . $tableName;