Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 3.4.beta, 3.4.0, 4.0.0, 4.1.0, Unscheduled
-
Fix Version/s: 3.4.alpha
-
Component/s: Core CiviCRM
-
Labels:None
Description
The actionLinks() function on line 113 of CRM/Activity/Selector/Activity.php assumes that the passed $activityTypeId is an enabled activityType, but this is not the case where past activities were generated using CiviCRM modules that have since been disabled.
The attached patch fixes the problem by checking for the existence of the activityId within the list of enabled activityTypes, and returning early if it is not found.