Skip to content

Commit

Permalink
Merge pull request #16125 from eileenmcnaughton/cont_sub
Browse files Browse the repository at this point in the history
dev/core#1482 Remove lines of code that appear to relate to legacy logic
  • Loading branch information
colemanw authored Dec 20, 2019
2 parents cbd6ceb + 7b97a02 commit 28506a4
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions CRM/Contact/BAO/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,16 +393,6 @@ public static function &create(&$params, $fixAddress = TRUE, $invokeHooks = TRUE
CRM_Core_BAO_CustomValueTable::store($params['custom'], 'civicrm_contact', $contact->id);
}

// make a civicrm_subscription_history entry only on contact create (CRM-777)
if (empty($params['contact_id'])) {
$subscriptionParams = [
'contact_id' => $contact->id,
'status' => 'Added',
'method' => 'Admin',
];
CRM_Contact_BAO_SubscriptionHistory::create($subscriptionParams);
}

$transaction->commit();

// CRM-6367: fetch the right label for contact type’s display
Expand Down

0 comments on commit 28506a4

Please sign in to comment.