*
* @package CRM
* @copyright CiviCRM LLC https://civicrm.org/licensing
- *
*/
/**
if ($this->_multiRecord &&
!in_array($this->_multiRecord, [CRM_Core_Action::UPDATE, CRM_Core_Action::ADD, CRM_Core_Action::DELETE])
) {
- CRM_Core_Error::fatal(ts('Proper action not specified for this custom value record profile'));
+ CRM_Core_Error::statusBounce(ts('Proper action not specified for this custom value record profile'));
}
}
$this->_duplicateButtonName = $this->getButtonName('upload', 'duplicate');
// check if we are rendering mixed profiles
if (CRM_Core_BAO_UFGroup::checkForMixProfiles($this->_profileIds)) {
- CRM_Core_Error::fatal(ts('You cannot combine profiles of multiple types.'));
+ CRM_Core_Error::statusBounce(ts('You cannot combine profiles of multiple types.'));
}
// for now consider 1'st profile as primary profile and validate it
}
if (empty($this->_ufGroup['is_active'])) {
- CRM_Core_Error::fatal(ts('The requested profile (gid=%1) is inactive or does not exist.', [
+ CRM_Core_Error::statusBounce(ts('The requested profile (gid=%1) is inactive or does not exist.', [
1 => $this->_gid,
]));
}
if (!$this->_recordId
&& ($this->_multiRecord == CRM_Core_Action::UPDATE || $this->_multiRecord == CRM_Core_Action::DELETE)
) {
- CRM_Core_Error::fatal(ts('The requested Profile (gid=%1) requires record id while performing this action',
+ CRM_Core_Error::statusBounce(ts('The requested Profile (gid=%1) requires record id while performing this action',
[1 => $this->_gid]
));
}
elseif (empty($this->_multiRecordFields)) {
- CRM_Core_Error::fatal(ts('No Multi-Record Fields configured for this profile (gid=%1)',
+ CRM_Core_Error::statusBounce(ts('No Multi-Record Fields configured for this profile (gid=%1)',
[1 => $this->_gid]
));
}