-- CRM-16015, fixed notice error
authorPradeep Nayak <pradpnayak@gmail.com>
Thu, 19 Mar 2015 09:58:12 +0000 (15:28 +0530)
committerPradeep Nayak <pradpnayak@gmail.com>
Thu, 19 Mar 2015 09:58:12 +0000 (15:28 +0530)
----------------------------------------
* CRM-16015: line_item table should be updated when contribution financial type is changed.
  https://issues.civicrm.org/jira/browse/CRM-16015

CRM/Contribute/Form/Contribution.php

index 00de7c927a86cf9a3885509dc98793d7b7c0a6ab..adb833f249538a3a07a49ff246e4d6dbeec2e00f 100644 (file)
@@ -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'];
         }
       }
     }