// add campaign status
$this->addSelect('status_id');
- // add External Identifire Element
- $this->add('text', 'external_identifier', ts('External Id'),
+ // add External Identifier Element
+ $this->add('text', 'external_identifier', ts('External ID'),
CRM_Core_DAO::getAttribute('CRM_Campaign_DAO_Campaign', 'external_identifier'), FALSE
);
}
if ( !$inlineEditMode ) {
- $form->add('text', 'external_identifier', ts('External Id'), $attributes['external_identifier'], FALSE);
+ $form->add('text', 'external_identifier', ts('External ID'), $attributes['external_identifier'], FALSE);
$form->addRule('external_identifier',
ts('External ID already exists in Database.'),
'objectExists',
$form->assign('checkSimilar', $checkSimilar);
//External Identifier Element
- $form->add('text', 'external_identifier', ts('External Id'),
+ $form->add('text', 'external_identifier', ts('External ID'),
CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'external_identifier'), FALSE
);
}
if ( !$inlineEditMode ) {
- $form->add('text', 'external_identifier', ts('External Id'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'external_identifier'), FALSE);
+ $form->add('text', 'external_identifier', ts('External ID'), CRM_Core_DAO::getAttribute('CRM_Contact_DAO_Contact', 'external_identifier'), FALSE);
$form->addRule('external_identifier',
ts('External ID already exists in Database.'),
'objectExists',
CRM_Dedupe_Merger::moveAllBelongings($this->_cid, $this->_oid, $formValues);
- CRM_Core_Session::setStatus(ts('Contact id %1 has been updated and contact id %2 has been deleted.', array(1 => $this->_cid, 2 => $this->_oid)), ts('Contacts Merged'), 'success');
+ $name = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $this->_cid, 'display_name');
+ $message = '<ul><li>' . ts('%1 has been updated.', array(1 => $name)) . '</li><li>' . ts('Contact ID %1 has been deleted.', array(1 => $this->_oid)) . '</li></ul>';
+ CRM_Core_Session::setStatus($message, ts('Contacts Merged'), 'success');
+
$url = CRM_Utils_System::url('civicrm/contact/view', "reset=1&cid={$this->_cid}");
if (!empty($formValues['_qf_Merge_submit'])) {
$listParamsURL = "reset=1&action=update&rgid={$this->_rgid}";
$this->_permissionedComponent = 'CiviContribute';
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Name') => 'display_name',
ts('Donation Count') => 'donation_count',
ts('Donation Amount') => 'donation_amount',
*/
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Name') => 'sort_name',
ts('Donation Count') => 'donation_count',
ts('Donation Amount') => 'donation_amount',
$this->_excludeGroups = CRM_Utils_Array::value('excludeGroups', $formValues, array());
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
ts('Date Added') => 'date_added',
* Define the columns for search result rows
*/
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Individual Name') => 'sort_name',
ts('Individual State') => 'indState',
ts('Employer') => 'employer',
*/
function &columns() {
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Name') => 'sort_name',
);
function __construct(&$formValues) {
$this->_formValues = $formValues;
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
ts('Group Name') => 'gname',
$this->_tag = CRM_Utils_Array::value('tag', $this->_formValues);
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
);
parent::__construct($formValues);
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Address') => 'address',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
function setColumns() {
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Participant Id') => 'participant_id',
ts('Name') => 'display_name',
);
parent::__construct($formValues);
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
ts('Email') => 'email',
}
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
ts('State') => 'state_province',
* Define the columns for search result rows
*/
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Full Name') => 'sort_name',
ts('First Name') => 'first_name',
ts('Last Name') => 'last_name',
parent::__construct($formValues);
$this->_columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Name') => 'sort_name',
ts('Email') => 'email',
ts('Zip') => 'postal_code',
foreach ($field as $fieldName => $fieldValue) {
if ($fieldName == 'external_identifier') {
if (in_array($fieldValue, $externalIdentifiers)) {
- $errors["field[$componentId][external_identifier]"] = ts('Duplicate value for External Identifier.');
+ $errors["field[$componentId][external_identifier]"] = ts('Duplicate value for External ID.');
}
else {
$externalIdentifiers[$componentId] = $fieldValue;
/* If it's a dupe,external Identifier */
if ($externalDupe = CRM_Utils_Array::value($externalID, $this->_allExternalIdentifiers)) {
- $errorMessage = ts('External Identifier conflicts with record %1', array(1 => $externalDupe));
+ $errorMessage = ts('External ID conflicts with record %1', array(1 => $externalDupe));
array_unshift($values, $errorMessage);
$importRecordParams = array(
$statusFieldName => 'ERROR',
if ($internalCid = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact', $params['external_identifier'], 'id', 'external_identifier')) {
if ($internalCid != CRM_Utils_Array::value('id', $params)) {
- $errorMessage = ts('External Identifier already exists in database.');
+ $errorMessage = ts('External ID already exists in Database.');
array_unshift($values, $errorMessage);
$importRecordParams = array(
$statusFieldName => 'ERROR',
}
if ($output == CRM_Core_Selector_Controller::EXPORT) {
- $csvHeaders = array(ts('Contact Id'), ts('Contact Type'));
+ $csvHeaders = array(ts('Contact ID'), ts('Contact Type'));
foreach ($this->getColHeads($action, $output) as $column) {
if (array_key_exists('name', $column)) {
$csvHeaders[] = $column['name'];
$fieldsArray = CRM_Dedupe_BAO_Rule::dedupeRuleFields($ruleParams);
$softCreditFields['contact_id'] = ts('Contact ID');
- $softCreditFields['external_identifier'] = ts('External Identifier');
+ $softCreditFields['external_identifier'] = ts('External ID');
$softCreditFields['email'] = ts('Email');
$sel2['soft_credit'] = $softCreditFields;
}
else {
$errors['_qf_default'] .= ts('Missing required contact matching fields.') . " $fieldMessage " . ts('(Sum of all weights should be greater than or equal to threshold: %1).', array(
- 1 => $threshold)) . ' ' . ts('Or Provide Contact Id or External Identifier.') . '<br />';
+ 1 => $threshold)) . ' ' . ts('Or Provide Contact ID or External ID.') . '<br />';
}
}
elseif (!in_array('event_title', $importKeys)) {
if (!$this->_single) {
$pre = array(
- array('desc' => ts('Contact Id')),
+ array('desc' => ts('Contact ID')),
array(
'name' => ts('Name'),
'sort' => 'sort_name',
</tr>
<tr>
<td {$labelStyle}>
- {ts}Organization Contact Id{/ts}
+ {ts}Organization Contact ID{/ts}
</td>
<td {$valueStyle}>
{$onBehalfID}
{ts}Organization Name{/ts}: {$onBehalfName}
{ts}Organization Email{/ts}: {$onBehalfEmail}
-{ts}Organization Contact Id{/ts}: {$onBehalfID}
+{ts}Organization Contact ID{/ts}: {$onBehalfID}
{ts}If you think this may be a duplicate contact which should be merged with an existing record -
Go to "CiviCRM >> Administer CiviCRM >> Find and Merge Duplicate Contacts". Use the strict
</tr>
<tr>
<td {$labelStyle}>
- {ts}Organization Contact Id{/ts}
+ {ts}Organization Contact ID{/ts}
</td>
<td {$valueStyle}>
{$onBehalfID}
</tr>
<tr>
<td {$labelStyle}>
- {ts}Organization Contact Id{/ts}
+ {ts}Organization Contact ID{/ts}
</td>
<td {$valueStyle}>
{$onBehalfID}
{ts}Organization Name{/ts}: {$onBehalfName}
{ts}Organization Email{/ts}: {$onBehalfEmail}
-{ts}Organization Contact Id{/ts}: {$onBehalfID}
+{ts}Organization Contact ID{/ts}: {$onBehalfID}
{ts}If you think this may be a duplicate contact which should be merged with an existing record -
Go to "Contacts >> Find and Merge Duplicate Contacts". Use the strict
$contact->external_identifier = $externalId;
$errorMsg = NULL;
if (!$contact->find(TRUE)) {
- $errorMsg = $contactId ? ts("Soft Credit ContactID - $contactId doesn't exist. Row was skipped.") : ts("Provided Soft Credit External Identifier - $externalIddoesn't exist. Row was skipped.");
+ $field = $contactId ? ts('Contact ID') : ts('External ID');
+ $errorMsg = ts("Soft Credit %1 - %2 doesn't exist. Row was skipped.",
+ array(1 => $field, 2 => $contactId ? $contactId : $externalId));
}
if ($errorMsg) {
function &columns() {
// return by reference
$columns = array(
- ts('Contact Id') => 'contact_id',
+ ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
ts('State') => 'state_province',
NULL, -1
);
- $this->_columns = array(ts('Contact Id') => 'contact_id',
+ $this->_columns = array(ts('Contact ID') => 'contact_id',
ts('Contact Type') => 'contact_type',
ts('Name') => 'sort_name',
);
<field>
<name>external_identifier</name>
<type>varchar</type>
- <title>Campaign External Identifier</title>
+ <title>Campaign External ID</title>
<length>32</length>
<headerPattern>/external\s?id/i</headerPattern>
<dataPattern>/^\d{11,}$/</dataPattern>
</tr>
<tr>
<td {$labelStyle}>
- {ts}Organization Contact Id{/ts}
+ {ts}Organization Contact ID{/ts}
</td>
<td {$valueStyle}>
{$onBehalfID}
{ts}Organization Name{/ts}: {$onBehalfName}
{ts}Organization Email{/ts}: {$onBehalfEmail}
-{ts}Organization Contact Id{/ts}: {$onBehalfID}
+{ts}Organization Contact ID{/ts}: {$onBehalfID}
{ts}If you think this may be a duplicate contact which should be merged with an existing record -
Go to "Contacts >> Find and Merge Duplicate Contacts". Use the strict