Skip to content
Snippets Groups Projects
Commit a3b8ab49 authored by bgm's avatar bgm Committed by Aegir user
Browse files

Avoid pseudo-profiles, such as Billing, fixes lack of defaults on a...

Avoid pseudo-profiles, such as Billing, fixes lack of defaults on a Contribution Page for logged-in users
parent b826c016
No related branches found
No related tags found
No related merge requests found
......@@ -13,6 +13,11 @@ class CRM_Activityprofile_APIWrappers_Profile {
return $apiRequest;
}
// Avoid pseudo profiles, ex: Billing
if (!is_numeric($params['profile_id'])) {
return $apiRequest;
}
$profile_id = _civicrm_api3_profile_getProfileID($params['profile_id']);
$isContactActivityProfile = $this->isActivityProfile($profile_id);
......@@ -159,6 +164,11 @@ class CRM_Activityprofile_APIWrappers_Profile {
return $return;
}
// Avoid pseudo profiles, ex: Billing
if (!is_numeric($apiRequest['params']['profile_id'])) {
return $return;
}
$params = $apiRequest['params'];
$profile_id = _civicrm_api3_profile_getProfileID($params['profile_id']);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment