Commit 34593f3e authored by eileen's avatar eileen 🎱

Merge pull request #8010 from mlutfy/master-crm17862

CRM-17862: Source field - in backend - one-time credit card contribution defaults to 'recurring contribution'.
parents 6300708b 6046ccbb
......@@ -4763,7 +4763,10 @@ LIMIT 1;";
* @throws \CiviCRM_API3_Exception
*/
protected static function getRecurringContributionDescription($contribution, $event) {
if (!empty($contribution->contribution_page_id)) {
if (!empty($contribution->source)) {
return $contribution->source;
}
elseif (!empty($contribution->contribution_page_id)) {
$contributionPageTitle = civicrm_api3('ContributionPage', 'getvalue', array(
'id' => $contribution->contribution_page_id,
'return' => 'title',
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment