Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
justinfreeman (Agileware)
Core
Commits
43427a24
Commit
43427a24
authored
11 years ago
by
Kurund Jalmi
Browse files
Options
Downloads
Patches
Plain Diff
notice fixes
parent
0ffc683b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CRM/Campaign/BAO/Petition.php
+2
-2
2 additions, 2 deletions
CRM/Campaign/BAO/Petition.php
CRM/Campaign/Form/Petition.php
+7
-0
7 additions, 0 deletions
CRM/Campaign/Form/Petition.php
CRM/Campaign/Form/Petition/Signature.php
+1
-1
1 addition, 1 deletion
CRM/Campaign/Form/Petition/Signature.php
with
10 additions
and
3 deletions
CRM/Campaign/BAO/Petition.php
+
2
−
2
View file @
43427a24
...
...
@@ -32,7 +32,7 @@
* $Id$
*
*/
C
lass
CRM_Campaign_BAO_Petition
extends
CRM_Campaign_BAO_Survey
{
c
lass
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
=
"
...
...
This diff is collapsed.
Click to expand it.
CRM/Campaign/Form/Petition.php
+
7
−
0
View file @
43427a24
...
...
@@ -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
();
...
...
This diff is collapsed.
Click to expand it.
CRM/Campaign/Form/Petition/Signature.php
+
1
−
1
View file @
43427a24
...
...
@@ -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
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment