added comment for fix of ambiguous column ref.
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 4 Jan 2017 21:54:58 +0000 (16:54 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 19 Jul 2017 20:02:31 +0000 (16:02 -0400)
this commit adds a comment section near the changes made in the relevant
file changed in commit b8d15d544ccc74365328ce59876071c43d848443

CRM/Contribute/BAO/ContributionRecur.php

index 24c4d22cd2091fe564ca58385c6839a756d2feb6..265156cacdd8622291f43cd5984b06ee207b1644 100644 (file)
@@ -454,6 +454,9 @@ INNER JOIN civicrm_contribution       con ON ( con.id = mp.contribution_id )
   public static function getTemplateContribution($id, $overrides = array()) {
     $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' => '',