*/
public $_grid;
+ /**
+ * Name of button for saving matching contacts
+ * @var
+ */
+ protected $_duplicateButtonName;
/**
* The title of the category we are editing
*
}
}
- //transfering all the multirecord custom fields in _fields
+ //transferring all the multi-record custom fields in _fields
if ($this->_multiRecord && !empty($this->_multiRecordFields)) {
$this->_fields = $this->_multiRecordFields;
$this->_multiRecordProfile = TRUE;
} elseif ($this->_multiRecord && empty($this->_multiRecordFields)) {
CRM_Core_Session::setStatus(ts('This feature is not currently available.'), ts('Sorry'), 'error');
- return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1'));
+ CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1'));
}
}
if (!is_array($this->_fields)) {
CRM_Core_Session::setStatus(ts('This feature is not currently available.'), ts('Sorry'), 'error');
- return CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1'));
+ CRM_Utils_System::redirect(CRM_Utils_System::url('civicrm', 'reset=1'));
}
}
}
}
- //lets have sigle status message,
+ //lets have single status message,
$this->assign('statusMessage', $statusMessage);
if ($return) {
return FALSE;
if ($this->_deleteButtonName) {
if (!empty($_POST[$this->_deleteButtonName]) && $this->_recordId) {
$filterParams['id'] = $this->_customGroupId;
- $returnProperities = array('is_multiple', 'table_name');
- CRM_Core_DAO::commonRetrieve("CRM_Core_DAO_CustomGroup", $filterParams, $returnValues, $returnProperities);
+ $returnProperties = array('is_multiple', 'table_name');
+ CRM_Core_DAO::commonRetrieve("CRM_Core_DAO_CustomGroup", $filterParams, $returnValues, $returnProperties);
if (!empty($returnValues['is_multiple'])) {
if ($tableName = CRM_Utils_Array::value('table_name', $returnValues)) {
$sql = "DELETE FROM {$tableName} WHERE id = %1 AND entity_id = %2";
$transaction = new CRM_Core_Transaction();
- //used to send subcribe mail to the group which user want.
+ //used to send subscribe mail to the group which user want.
//if the profile double option in is enabled
$mailingType = array();
- $config = CRM_Core_Config::singleton();
$result = NULL;
foreach ($params as $name => $values) {