Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-7607

When viewing activities whose types are no longer enabled, no actionLinks should be displayed.

    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.

        Attachments

          Activity

            People

            • Assignee:
              kiran.jagtap Kiran Jagtap
              Reporter:
              pillarsdotnet Bob Vincent
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 15 minutes
                15m
                Remaining:
                Remaining Estimate - 15 minutes
                15m
                Logged:
                Time Spent - Not Specified
                Not Specified