Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Extensions
CiviDiscount
Commits
cce50bf8
Commit
cce50bf8
authored
Oct 07, 2014
by
Kurund Jalmi
Browse files
Merge pull request #75 from generalredneck/membership_priceset
[
#74
] Tracking discount codes used on memberships with pricesets.
parents
82945d27
dc61a7f4
Changes
1
Hide whitespace changes
Inline
Side-by-side
cividiscount.php
View file @
cce50bf8
...
...
@@ -576,8 +576,12 @@ function cividiscount_civicrm_postProcess($class, &$form) {
$membership_type
=
$params
[
'selectMembership'
];
$membershipId
=
$params
[
'membershipID'
];
if
(
!
is_array
(
$membership_type
))
{
$membership_type
=
array
(
$membership_type
);
}
$discount_membership_matches
=
array_intersect
(
$membership_type
,
$discount
[
'memberships'
]);
// check to make sure the discount actually applied to this membership.
if
(
!
CRM_Utils_Array
::
value
(
$membership_type
,
$discount
[
'
membership
s'
]
)
||
!
$membershipId
)
{
if
(
empty
(
$discount
_
membership
_matches
)
||
!
$membershipId
)
{
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment