From: jitendrapurohit Date: Thu, 27 Nov 2014 09:22:35 +0000 (+0530) Subject: support for old variable X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=11e23469092788af7ff6b5f98e2933db7cb122a6;p=civicrm-core.git support for old variable --- diff --git a/CRM/Campaign/Page/Petition/Confirm.php b/CRM/Campaign/Page/Petition/Confirm.php index 0674ddeb24..dfbae833eb 100644 --- a/CRM/Campaign/Page/Petition/Confirm.php +++ b/CRM/Campaign/Page/Petition/Confirm.php @@ -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 ||