Merge branch '4.6' into 'master'
[civicrm-core.git] / CRM / Campaign / BAO / Survey.php
index 6684fe2a37c4161ffaba44350a6a085d94eea155..45ecdd462b0a2b5895e37f43d15ef13dfb46e74b 100644 (file)
@@ -377,7 +377,7 @@ SELECT  survey.id    as id,
    *   Value we want to set the is_active field.
    *
    * @return Object
-   *   DAO object on sucess, null otherwise
+   *   DAO object on success, null otherwise
    */
   public static function setIsActive($id, $is_active) {
     return CRM_Core_DAO::setFieldValue('CRM_Campaign_DAO_Survey', $id, 'is_active', $is_active);
@@ -1132,7 +1132,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;
     }