+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
/**
*
* @package CRM
- * @copyright CiviCRM LLC (c) 2004-2014
+ * @copyright CiviCRM LLC (c) 2004-2015
* $Id$
*
*/
*/
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;
*/
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
protected $_currentUserID = NULL;
protected $_session = NULL;
+ /**
+ * Explicitly declare the entity api name.
+ */
+ public function getDefaultEntity() {
+ return 'Profile';
+ }
+
/**
* Pre processing work done here.
*
$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)
) {
$ids = CRM_Dedupe_Finder::dupesByParams($dedupeParams,
$ctype,
$ruleType,
- $exceptions
+ $exceptions,
+ $form->_ruleGroupID
);
if ($ids) {
if ($form->_isUpdateDupe == 2) {