X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FProfile%2FForm.php;h=59a7096096c761c31309f07c7bd9e47c96018f30;hb=f38178e6aa43297ef8b9e08ca1bcb6bd49c81473;hp=57b45ff87be7679481c474099cea9d410e8197d5;hpb=8da4d19481a1495317806f83dc29a3ca6c8c87f1;p=civicrm-core.git diff --git a/CRM/Profile/Form.php b/CRM/Profile/Form.php index 57b45ff87b..59a7096096 100644 --- a/CRM/Profile/Form.php +++ b/CRM/Profile/Form.php @@ -111,6 +111,12 @@ class CRM_Profile_Form extends CRM_Core_Form { */ public $_isUpdateDupe = 0; + /** + * Dedupe using a specific rule (CRM-6131). + * Not currently exposed in profile settings, but can be set in a buildForm hook. + */ + public $_ruleGroupID = NULL; + public $_isAddCaptcha = FALSE; protected $_isPermissionedChecksum = FALSE; @@ -129,8 +135,6 @@ class CRM_Profile_Form extends CRM_Core_Form { */ protected $_ctype = NULL; - protected $_defaults = NULL; - /** * Store profile ids if multiple profile ids are passed using comma separated. * Currently lets implement this functionality only for dialog mode @@ -321,7 +325,7 @@ class CRM_Profile_Form extends CRM_Core_Form { $this->_recordId = NULL; $this->set('recordId', NULL); } - //record id is neccessary for _multiRecord view and update/edit action + //record id is necessary for _multiRecord view and update/edit action if (!$this->_recordId && ($this->_multiRecord == CRM_Core_Action::UPDATE || $this->_multiRecord == CRM_Core_Action::DELETE) ) { @@ -953,7 +957,8 @@ class CRM_Profile_Form extends CRM_Core_Form { $ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams, $ctype, $ruleType, - $exceptions + $exceptions, + $form->_ruleGroupID ); if ($ids) { if ($form->_isUpdateDupe == 2) {