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
1913265b
Commit
1913265b
authored
11 years ago
by
Tim Otten
Browse files
Options
Downloads
Plain Diff
Merge pull request #2764 from eileenmcnaughton/static_warnings
Static warnings
parents
2cfba9c0
cb997b08
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CRM/Contribute/BAO/Contribution.php
+3
-3
3 additions, 3 deletions
CRM/Contribute/BAO/Contribution.php
CRM/Core/Payment/PayJunction.php
+1
-1
1 addition, 1 deletion
CRM/Core/Payment/PayJunction.php
CRM/Member/Form/Membership.php
+2
-2
2 additions, 2 deletions
CRM/Member/Form/Membership.php
with
6 additions
and
6 deletions
CRM/Contribute/BAO/Contribution.php
+
3
−
3
View file @
1913265b
...
...
@@ -2714,8 +2714,8 @@ WHERE contribution_id = %1 ";
$itemAmount
=
$trxnID
=
NULL
;
//get all the statuses
$contributionStatus
=
CRM_Contribute_PseudoConstant
::
contributionStatus
(
NULL
,
'name'
);
if
((
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'Pending'
,
$contributionStatus
)
||
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'In Progress'
,
$contributionStatus
))
if
((
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'Pending'
,
$contributionStatus
)
||
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'In Progress'
,
$contributionStatus
))
&&
$params
[
'contribution'
]
->
contribution_status_id
==
array_search
(
'Completed'
,
$contributionStatus
)
&&
$context
==
'changePaymentInstrument'
)
{
return
;
...
...
@@ -2763,7 +2763,7 @@ WHERE contribution_id = %1 ";
if
(
$context
==
'changedStatus'
)
{
if
((
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'Pending'
,
$contributionStatus
)
||
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'In Progress'
,
$contributionStatus
))
||
$params
[
'prevContribution'
]
->
contribution_status_id
==
array_search
(
'In Progress'
,
$contributionStatus
))
&&
(
$params
[
'contribution'
]
->
contribution_status_id
==
array_search
(
'Completed'
,
$contributionStatus
)))
{
$query
=
"UPDATE civicrm_financial_item SET status_id = %1 WHERE entity_id = %2 and entity_table = 'civicrm_line_item'"
;
$sql
=
"SELECT id, amount FROM civicrm_financial_item WHERE entity_id = %1 and entity_table = 'civicrm_line_item'"
;
...
...
This diff is collapsed.
Click to expand it.
CRM/Core/Payment/PayJunction.php
+
1
−
1
View file @
1913265b
...
...
@@ -53,7 +53,7 @@ class CRM_Core_Payment_PayJunction extends CRM_Core_Payment {
* @static
*
*/
static
function
&
singleton
(
$mode
,
&
$paymentProcessor
)
{
static
function
&
singleton
(
$mode
,
&
$paymentProcessor
,
&
$paymentForm
=
NULL
,
$force
=
false
)
{
$processorName
=
$paymentProcessor
[
'name'
];
if
(
self
::
$_singleton
[
$processorName
]
===
NULL
)
{
self
::
$_singleton
[
$processorName
]
=
new
CRM_Core_Payment_PayJunction
(
$mode
,
$paymentProcessor
);
...
...
This diff is collapsed.
Click to expand it.
CRM/Member/Form/Membership.php
+
2
−
2
View file @
1913265b
...
...
@@ -359,7 +359,7 @@ class CRM_Member_Form_Membership extends CRM_Member_Form {
}
}
}
if
(
CRM_Utils_Array
::
value
(
'record_contribution'
,
$defaults
)
&&
!
$this
->
_mode
)
{
$contributionParams
=
array
(
'id'
=>
$defaults
[
'record_contribution'
]);
$contributionIds
=
array
();
...
...
@@ -930,7 +930,7 @@ WHERE id IN ( ' . implode(' , ', array_keys($membershipType)) . ' )';
if
(
!
$priceSetId
&&
$self
->
_mode
&&
!
CRM_Utils_Array
::
value
(
'financial_type_id'
,
$params
))
{
$errors
[
'financial_type_id'
]
=
ts
(
'Please enter the financial Type.'
);
}
if
(
CRM_Utils_Array
::
value
(
'record_contribution'
,
$params
)
&&
!
CRM_Utils_Array
::
value
(
'payment_instrument_id'
,
$params
))
{
$errors
[
'payment_instrument_id'
]
=
ts
(
'Paid By is a required field.'
);
}
...
...
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