CRM-20510: Petition signature doesn't show as an activity type for scheduled reminder
authordeb.monish <monish.deb@jmaconsulting.biz>
Thu, 4 May 2017 08:04:55 +0000 (13:34 +0530)
committerdeb.monish <monish.deb@jmaconsulting.biz>
Sat, 6 May 2017 02:08:04 +0000 (07:38 +0530)
Civi/ActionSchedule/Mapping.php

index 5f9b1b1518255a3b5e0350e7ff1ca117dc6bfcb5..dd25ee7af3803d7cfdaddff1786fd0de8a854d3f 100644 (file)
@@ -286,7 +286,8 @@ abstract class Mapping implements MappingInterface {
   protected static function getValueLabelMap($name) {
     static $valueLabelMap = NULL;
     if ($valueLabelMap === NULL) {
-      $valueLabelMap['activity_type'] = \CRM_Core_PseudoConstant::activityType(TRUE, TRUE);
+      // CRM-20510: Include CiviCampaign activity types along with CiviCase IF component is enabled
+      $valueLabelMap['activity_type'] = \CRM_Core_PseudoConstant::activityType(TRUE, TRUE, FALSE, 'label', TRUE);
       asort($valueLabelMap['activity_type']);
 
       $valueLabelMap['activity_status'] = \CRM_Core_PseudoConstant::activityStatus();