Wrong parameter passing in LineItem.php
Found an incorrect parameter supplied to getFieldValue() function in CRM/Price/BAO/LineItem.php.
Current Code from https://github.com/civicrm/civicrm-core/blob/master/CRM/Price/BAO/LineItem.php#L458-
$membershipId = CRM_Core_DAO::getFieldValue('CRM_Member_DAO_MembershipPayment', 'contribution_id', $line['entity_id'], 'membership_id');
getFieldValue()
accepts the following parameters which is not correctly fed in the above line
- @param string $daoName
- Name of the DAO (Example: CRM_Contact_DAO_Contact to retrieve value from a contact).
- @param int $searchValue
- Value of the column you want to search by.
- @param string $returnColumn
- Name of the column you want to GET the value of.
- @param string $searchColumn
- Name of the column you want to search by.
- @param bool $force
- Skip use of the cache.