Skip to content
Snippets Groups Projects
Commit 43427a24 authored by Kurund Jalmi's avatar Kurund Jalmi
Browse files

notice fixes

parent 0ffc683b
No related branches found
No related tags found
No related merge requests found
......@@ -32,7 +32,7 @@
* $Id$
*
*/
Class CRM_Campaign_BAO_Petition extends CRM_Campaign_BAO_Survey {
class CRM_Campaign_BAO_Petition extends CRM_Campaign_BAO_Survey {
function __construct() {
parent::__construct();
// expire cookie in one day
......@@ -328,7 +328,7 @@ AND tag_id = ( SELECT id FROM civicrm_tag WHERE name = %2 )";
}
public function getSurveyInfo($surveyId = NULL) {
public static function getSurveyInfo($surveyId = NULL) {
$surveyInfo = array();
$sql = "
......
......@@ -37,8 +37,15 @@
* This class generates form components for adding a petition
*
*/
class CRM_Campaign_Form_Petition extends CRM_Core_Form {
/**
* @var int
* @protected
*/
protected $_surveyId;
public function preProcess() {
if (!CRM_Campaign_BAO_Campaign::accessCampaign()) {
CRM_Utils_System::permissionDenied();
......
......@@ -523,7 +523,7 @@ class CRM_Campaign_Form_Petition_Signature extends CRM_Core_Form {
// create the signature activity record
$params['contactId'] = $this->_contactId;
$params['activity_campaign_id'] = $this->petition['campaign_id'];
$params['activity_campaign_id'] = CRM_Utils_Array::value('campaign_id', $this->petition);
$result = $this->bao->createSignature($params);
// send thank you or email verification emails
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment