Skip to content

Commit

Permalink
CRM-19936, initialized array for line items
Browse files Browse the repository at this point in the history
----------------------------------------
* CRM-19936: Membership line items are doubled when a membersip is renewed using online contribution page
  https://issues.civicrm.org/jira/browse/CRM-19936
  • Loading branch information
pradpnayak committed Jan 27, 2017
1 parent c601fe1 commit aa1d180
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions CRM/Contribute/Form/Contribution/Confirm.php
Original file line number Diff line number Diff line change
Expand Up @@ -1527,6 +1527,7 @@ protected function postProcessMembership(

$i = 1;
foreach ($membershipTypeIDs as $memType) {
$membershipLineItems = array();
if ($i < count($membershipTypeIDs)) {
$membershipLineItems[$priceSetID][$membershipLines[$memType]] = $unprocessedLineItems[$priceSetID][$membershipLines[$memType]];
unset($unprocessedLineItems[$priceSetID][$membershipLines[$memType]]);
Expand Down

0 comments on commit aa1d180

Please sign in to comment.