From fdfd9aefd293c1afe1759d534e862841fd552286 Mon Sep 17 00:00:00 2001 From: Andrew Engelbrecht Date: Wed, 4 Jan 2017 16:54:58 -0500 Subject: [PATCH] added comment for fix of ambiguous column ref. this commit adds a comment section near the changes made in the relevant file changed in commit b8d15d544ccc74365328ce59876071c43d848443 --- CRM/Contribute/BAO/ContributionRecur.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CRM/Contribute/BAO/ContributionRecur.php b/CRM/Contribute/BAO/ContributionRecur.php index a84557b6ee..211979a6a5 100644 --- a/CRM/Contribute/BAO/ContributionRecur.php +++ b/CRM/Contribute/BAO/ContributionRecur.php @@ -443,6 +443,9 @@ INNER JOIN civicrm_contribution con ON ( con.id = mp.contribution_id ) public static function getTemplateContribution($id) { $templateContribution = civicrm_api3('Contribution', 'get', array( 'contribution_recur_id' => $id, + // fix ambiguous reference to "id" (multiple tables with "id" column are queried). + // https://rt.gnu.org/Ticket/Display.html?id=1176733 + // - sudoman 2017-01-04 (with some help by quidam) 'options' => array('limit' => 1, 'sort' => array('civicrm_contribution_recur.id DESC')), 'sequential' => 1, 'contribution_test' => '', -- 2.25.1