CRM-13204 fix
authormonishdeb <monish.deb@webaccess.co.in>
Mon, 26 Aug 2013 14:59:02 +0000 (20:29 +0530)
committermonishdeb <monish.deb@webaccess.co.in>
Mon, 26 Aug 2013 14:59:02 +0000 (20:29 +0530)
----------------------------------------
* CRM-13204: Confirmation link for petition is broken
  http://issues.civicrm.org/jira/browse/CRM-13204

CRM/Campaign/Form/Petition/Signature.php

index 0ecc732b05abc7c1e1e76e17120313d4aba6dbf1..4ac691b1498e8d79144ce71d87f88814eea9d15f 100644 (file)
@@ -553,6 +553,7 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
           unset($tag_params);
           $tag_params['contact_id'] = $this->_contactId;
           $tag_params['tag_id'] = $this->_tagId;
+          $tag_params['version'] = 3;
           $tag_value = civicrm_api('entity_tag', 'create', $tag_params);
         }
         break;
@@ -561,10 +562,11 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
     //send email
     $params['activityId'] = $result->id;
     $params['tagId'] = $this->_tagId;
-    $this->bao->sendEmail($params, $this->_sendEmailMode);
 
     $transaction->commit();
 
+    $this->bao->sendEmail($params, $this->_sendEmailMode);
+
     if ($result) {
       // call the hook before we redirect
       $this->postProcessHook();