projects
/
civicrm-core.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae2346d
)
CRM-20858: Add Documentation Block for customRecordExists
author
Camilo Rodriguez
<camilo@compucorp.co.uk>
Wed, 9 Aug 2017 14:21:45 +0000
(14:21 +0000)
committer
Camilo Rodriguez
<camilo@compucorp.co.uk>
Wed, 9 Aug 2017 14:21:45 +0000
(14:21 +0000)
CRM/Dedupe/Merger.php
patch
|
blob
|
blame
|
history
diff --git
a/CRM/Dedupe/Merger.php
b/CRM/Dedupe/Merger.php
index 9ff1aeae16702093ce1a1f71999285c9c5f04c66..f8b1dcf1a862f365d90406ede9b07772046bd20b 100755
(executable)
--- a/
CRM/Dedupe/Merger.php
+++ b/
CRM/Dedupe/Merger.php
@@
-555,6
+555,17
@@
INNER JOIN civicrm_membership membership2 ON membership1.membership_type_id = m
$transaction->commit();
}
+ /**
+ * Given a contact ID, will check if a record exists in given table.
+ *
+ * @param $contactID
+ * @param $table
+ * @param $idField
+ * Field where the contact's ID is stored in the table
+ *
+ * @return bool
+ * True if a record is found for the given contact ID, false otherwise
+ */
private static function customRecordExists($contactID, $table, $idField) {
$sql = "
SELECT COUNT(*) AS count