From: Pradeep Nayak Date: Thu, 19 Mar 2015 09:58:12 +0000 (+0530) Subject: -- CRM-16015, fixed notice error X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=a50735e74ba61b333366aef36784fc33311fbc7e;p=civicrm-core.git -- CRM-16015, fixed notice error ---------------------------------------- * CRM-16015: line_item table should be updated when contribution financial type is changed. https://issues.civicrm.org/jira/browse/CRM-16015 --- diff --git a/CRM/Contribute/Form/Contribution.php b/CRM/Contribute/Form/Contribution.php index 00de7c927a..adb833f249 100644 --- a/CRM/Contribute/Form/Contribution.php +++ b/CRM/Contribute/Form/Contribution.php @@ -1044,7 +1044,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP $isRelatedId = TRUE; } elseif (array_key_exists('participant', $contributionDetails)) { - $pId = current($contributionDetails['participant']); + $pId = $contributionDetails['participant']; } } }