fix for CRM-14427
authorkurund <kurund@civicrm.org>
Tue, 8 Apr 2014 00:14:16 +0000 (17:14 -0700)
committerkurund <kurund@civicrm.org>
Tue, 8 Apr 2014 00:14:16 +0000 (17:14 -0700)
----------------------------------------
* CRM-14427: PCP account creation fails if contact already exists
  https://issues.civicrm.org/jira/browse/CRM-14427

CRM/PCP/Form/PCPAccount.php

index fd30363a0e92bf0ebcd764d83a93722049120d28..436286b800e1c53b0dddaabbe2bbf806234081c2 100644 (file)
@@ -291,6 +291,7 @@ class CRM_PCP_Form_PCPAccount extends CRM_Core_Form {
     }
 
     $dedupeParams = CRM_Dedupe_Finder::formatParams($params, 'Individual');
+    $dedupeParams['check_permission'] = FALSE;
     $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, 'Individual', 'Unsupervised');
     if ($ids) {
       $this->_contactID = $ids['0'];