From b74201e4153f82a3ba5b4192ed5ce84fcc374a87 Mon Sep 17 00:00:00 2001 From: monishdeb Date: Tue, 19 Nov 2013 15:31:42 +0530 Subject: [PATCH] Remove html formatting from status message --- CRM/Contact/Form/Merge.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CRM/Contact/Form/Merge.php b/CRM/Contact/Form/Merge.php index c0fc66d172..369587ea35 100644 --- a/CRM/Contact/Form/Merge.php +++ b/CRM/Contact/Form/Merge.php @@ -298,8 +298,12 @@ class CRM_Contact_Form_Merge extends CRM_Core_Form { static function formRule($fields, $files, $self) { $errors = array(); + $link = CRM_Utils_System::href(ts('Flip between the original and duplicate contacts'), + 'civicrm/contact/merge', + 'reset=1&action=update&cid=' . $self->_oid . '&oid=' . $self->_cid . '&rgid=' . $self->_rgid . '&flip=1' + ); if (CRM_Contact_BAO_Contact::checkDomainContact($self->_oid)) { - $errors['_qf_default'] = ts("The Default Organization contact cannot be merged into another contact record. It is associated with the CiviCRM installation for this domain and contains information used for system functions. If you want to merge these records, you can click the link to Flip between the original and duplicate contacts and then continue with the merge.", array(1 => CRM_Utils_System::url('civicrm/contact/merge', 'reset=1&action=update&cid=' . $self->_oid . '&oid=' . $self->_cid . '&rgid=' . $self->_rgid . '&flip=1'))); + $errors['_qf_default'] = ts("The Default Organization contact cannot be merged into another contact record. It is associated with the CiviCRM installation for this domain and contains information used for system functions. If you want to merge these records, you can click the link to %1 and then continue with the merge.", array(1 => $link)); } return $errors; } -- 2.25.1