Skip to content

Instantly share code, notes, and snippets.

@cravecode
Last active August 29, 2015 14:27
Show Gist options
  • Save cravecode/680752ccb42b48cd4391 to your computer and use it in GitHub Desktop.
Save cravecode/680752ccb42b48cd4391 to your computer and use it in GitHub Desktop.
Removes the duplication check for a transaction via trxn_id or invoice_id from a CiviCRM contribution.
--- a/CRM/Contribute/BAO/Contribution.php 2015-08-10 12:54:11.213977480 -0400
+++ b/CRM/Contribute/BAO/Contribution.php 2015-08-10 12:54:31.000000000 -0400
@@ -773,6 +773,7 @@
* static
*/
static function checkDuplicate($input, &$duplicates, $id = NULL) {
+ return FALSE;
if (!$id) {
$id = CRM_Utils_Array::value('id', $input);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment