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

Fix 'missing activity_id' bug caused by incorrect detecion of isActivityProfile

parent 8483cff5
......@@ -348,6 +348,12 @@ class CRM_Activityprofile_APIWrappers_Profile {
return FALSE;
}
// This should never be an array, but that is how it worked before,
// so keeping this as a precaution to avoid regressions.
if (!is_array($profile_type)) {
$profile_type = [$profile_type];
}
foreach ($profile_type as $type) {
$parts = explode(',', $type);
......
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