From 83b0a3cc2bfe0f2c67457fcc4abce3f9ca373faa Mon Sep 17 00:00:00 2001 From: monishdeb Date: Mon, 26 Aug 2013 20:29:02 +0530 Subject: [PATCH] CRM-13204 fix ---------------------------------------- * CRM-13204: Confirmation link for petition is broken http://issues.civicrm.org/jira/browse/CRM-13204 --- CRM/Campaign/Form/Petition/Signature.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CRM/Campaign/Form/Petition/Signature.php b/CRM/Campaign/Form/Petition/Signature.php index 0ecc732b05..4ac691b149 100644 --- a/CRM/Campaign/Form/Petition/Signature.php +++ b/CRM/Campaign/Form/Petition/Signature.php @@ -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(); -- 2.25.1