Skip to content
Snippets Groups Projects
Commit c1b19e8a authored by eileen's avatar eileen
Browse files

CRM-13234 add support for profile names on submit

parent b0b44427
Branches
Tags
No related merge requests found
......@@ -147,7 +147,7 @@ function _civicrm_api3_profile_get_spec(&$params) {
* @return array API result array
*/
function civicrm_api3_profile_submit($params) {
$profileID = _civicrm_api3_profile_getProfileID($params['profile_id']);
if (!CRM_Core_DAO::getFieldValue('CRM_Core_DAO_UFGroup', $params['profile_id'], 'is_active')) {
throw new API_Exception('Invalid value for profile_id');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment