-- CRM-15206, fixed display of line item on edit contribution form
authorPradeep Nayak <pradeep.nayak@webaccess.co.in>
Mon, 1 Sep 2014 10:51:39 +0000 (16:21 +0530)
committerPradeep Nayak <pradeep.nayak@webaccess.co.in>
Mon, 1 Sep 2014 10:51:39 +0000 (16:21 +0530)
----------------------------------------
* CRM-15206: Edit Contribution form for Membership shows wrong line item
  https://issues.civicrm.org/jira/browse/CRM-15206

CRM/Contribute/Form/Contribution.php

index 5c98b55173926ed5a79784c914813e82c997ba4f..1a4804751953415bdb4f4b4a5fadb5d86e7f650c 100644 (file)
@@ -323,7 +323,7 @@ class CRM_Contribute_Form_Contribution extends CRM_Contribute_Form_AbstractEditP
         $lineItem = CRM_Price_BAO_LineItem::getLineItems($this->_compId);
       }
       else {
-        $lineItem = CRM_Price_BAO_LineItem::getLineItems($this->_id, 'contribution', 1);
+        $lineItem = CRM_Price_BAO_LineItem::getLineItems($this->_id, 'contribution', 1, TRUE, TRUE);
       }
       empty($lineItem) ? NULL : $this->_lineItems[] = $lineItem;
     }