support for old variable
authorjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 27 Nov 2014 09:22:35 +0000 (14:52 +0530)
committerjitendrapurohit <jitendra.purohit@webaccessglobal.com>
Thu, 27 Nov 2014 09:22:35 +0000 (14:52 +0530)
CRM/Campaign/Page/Petition/Confirm.php

index 0674ddeb24a6b136c426ad9b2be6686bbe3fcd26..dfbae833ebfa71f36d36f6e637f64c071573dedb 100644 (file)
@@ -45,6 +45,9 @@ class CRM_Campaign_Page_Petition_Confirm extends CRM_Core_Page {
     $hash         = CRM_Utils_Request::retrieve('h', 'String', CRM_Core_DAO::$_nullObject);
     $activity_id  = CRM_Utils_Request::retrieve('a', 'String', CRM_Core_DAO::$_nullObject);
     $petition_id  = CRM_Utils_Request::retrieve('pid', 'String', CRM_Core_DAO::$_nullObject);
+    if (!$petition_id) {
+      $petition_id  = CRM_Utils_Request::retrieve('p', 'String', CRM_Core_DAO::$_nullObject);
+    }
 
     if (!$contact_id ||
       !$subscribe_id ||