CRM-16236 - Fix survey api to include petition activities
authorColeman Watts <coleman@civicrm.org>
Sat, 4 Apr 2015 17:50:59 +0000 (13:50 -0400)
committerColeman Watts <coleman@civicrm.org>
Sat, 4 Apr 2015 17:50:59 +0000 (13:50 -0400)
CRM/Campaign/BAO/Survey.php

index de6f7a1b1111b65c614c20900eff3837302ff71b..2e833d5af10efcef8f8704db878d4371a7e3e24b 100644 (file)
@@ -1127,7 +1127,7 @@ UPDATE  civicrm_activity
       case 'activity_type_id':
         $campaignCompId = CRM_Core_Component::getComponentID('CiviCampaign');
         if ($campaignCompId) {
-          $params['condition'] = array("component_id={$campaignCompId}", "v.name != 'Petition'");
+          $params['condition'] = array("component_id={$campaignCompId}");
         }
         break;
     }