Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
CiviCRM Core
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
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
Development
CiviCRM Core
Commits
6e46589d
Commit
6e46589d
authored
12 years ago
by
lobo
Browse files
Options
Downloads
Plain Diff
Merge pull request
#520
from dlobo/CRM-12274
CRM-12274
parents
de129836
0856e0bb
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CRM/Activity/BAO/Activity.php
+5
-2
5 additions, 2 deletions
CRM/Activity/BAO/Activity.php
api/v3/examples/ParticipantPaymentGet.php
+10
-0
10 additions, 0 deletions
api/v3/examples/ParticipantPaymentGet.php
with
15 additions
and
2 deletions
CRM/Activity/BAO/Activity.php
+
5
−
2
View file @
6e46589d
...
...
@@ -625,7 +625,9 @@ class CRM_Activity_BAO_Activity extends CRM_Activity_DAO_Activity {
$session
=
CRM_Core_Session
::
singleton
();
$id
=
$session
->
get
(
'userID'
);
if
(
!
$id
)
{
$id
=
$activity
->
source_contact_id
;
$activityContacts
=
CRM_Core_PseudoConstant
::
activityContacts
(
'name'
);
$sourceID
=
CRM_Utils_Array
::
key
(
'Activity Source'
,
$activityContacts
);
$id
=
self
::
getActivityContact
(
$activity
->
id
.
$sourceID
);
}
$logParams
=
array
(
'entity_table'
=>
'civicrm_activity'
,
...
...
@@ -1698,7 +1700,6 @@ WHERE activity.id IN ($activityIds)";
$activityStatuses
=
CRM_Core_OptionGroup
::
values
(
'activity_status'
);
while
(
$dao
->
fetch
())
{
//$activities[$dao->activity_id]['source_contact_id'] = $dao->source_contact_id;
$activities
[
$dao
->
activity_id
][
'id'
]
=
$dao
->
activity_id
;
$activities
[
$dao
->
activity_id
][
'activity_type_id'
]
=
$dao
->
activity_type_id
;
$activities
[
$dao
->
activity_id
][
'subject'
]
=
$dao
->
subject
;
...
...
@@ -2168,6 +2169,8 @@ AND cl.modified_id = c.id
// delete activity if there is no record in
// civicrm_activity_contact
// pointing to any other contact record.
// FIXME: this will be an awful query, figure out what function does
// and clean up
$activity
=
new
CRM_Activity_DAO_Activity
();
$activity
->
source_contact_id
=
$contactId
;
$activity
->
find
();
...
...
This diff is collapsed.
Click to expand it.
api/v3/examples/ParticipantPaymentGet.php
+
10
−
0
View file @
6e46589d
...
...
@@ -8,6 +8,7 @@ $params = array(
'participant_id'
=>
4
,
'contribution_id'
=>
1
,
'version'
=>
3
,
'debug'
=>
1
,
);
$result
=
civicrm_api
(
'participant_payment'
,
'get'
,
$params
);
...
...
@@ -22,6 +23,10 @@ function participant_payment_get_expectedresult(){
$expectedResult
=
array
(
'is_error'
=>
0
,
'undefined_fields'
=>
array
(
'0'
=>
'participant_id'
,
'1'
=>
'contribution_id'
,
),
'version'
=>
3
,
'count'
=>
1
,
'id'
=>
1
,
...
...
@@ -32,6 +37,11 @@ function participant_payment_get_expectedresult(){
'contribution_id'
=>
'1'
,
),
),
'xdebug'
=>
array
(
'peakMemory'
=>
34740680
,
'memory'
=>
33998960
,
'timeIndex'
=>
'79.778831005096'
,
),
);
return
$expectedResult
;
...
...
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