Commit 8273aaf9 authored by bgm's avatar bgm Committed by Aegir user
Browse files

Fix adding a field to a profile (fixes CiviCRM 5.44 compatibility)

parent 3d272948
......@@ -154,6 +154,11 @@ class CRM_Activityprofile_APIWrappers_Profile {
return $result;
}
// This can happen during a cache-clear
if (empty($params['profile_id'])) {
return $return;
}
$params = $apiRequest['params'];
$profile_id = _civicrm_api3_profile_getProfileID($params['profile_id']);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment