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
bdbf2591
Commit
bdbf2591
authored
3 years ago
by
Eileen McNaughton
Browse files
Options
Downloads
Patches
Plain Diff
#2904
ensure skipStatusCal not passed from the order api
parent
6478fb57
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
api/v3/Order.php
+2
-0
2 additions, 0 deletions
api/v3/Order.php
with
2 additions
and
0 deletions
api/v3/Order.php
+
2
−
0
View file @
bdbf2591
...
...
@@ -304,6 +304,8 @@ function _civicrm_api3_order_delete_spec(array &$params) {
*/
function
_order_create_wrangle_membership_params
(
array
&
$membershipParams
)
{
$fields
=
Membership
::
getFields
(
FALSE
)
->
execute
()
->
indexBy
(
'name'
);
// Ensure this legacy parameter is not true.
$membershipParams
[
'skipStatusCal'
]
=
FALSE
;
foreach
(
$fields
as
$fieldName
=>
$field
)
{
$customFieldName
=
'custom_'
.
(
$field
[
'custom_field_id'
]
??
NULL
);
if
(
$field
[
'type'
]
===
[
'Custom'
]
&&
isset
(
$membershipParams
[
$customFieldName
]))
{
...
...
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