fix display of contacts' recurring contributions
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 4 Jan 2017 21:45:12 +0000 (16:45 -0500)
committerAndrew Engelbrecht <andrew@fsf.org>
Wed, 19 Jul 2017 20:02:31 +0000 (16:02 -0400)
commitff826d542626604ac82a981d4d022fa33a45dfa5
treef18db20d52f52f71b2c1ee545c334fe94af327ae
parent3501a6f796d882f6f8a56f2ec72d1805f2cbaf4a
fix display of contacts' recurring contributions

https://rt.gnu.org/Ticket/Display.html?id=1176733

if you look at a contact, click contributions, then click on "view" next
to a recurring payment (not all users have these), then the server would
crash and give a backtrace. this patch fixes that issue.

the issue was due to a sort-by-id failing because multiple tables are
queried, more than one of which has an id column. therefore the "id"
column name was redundant and threw an SQL error. this patch specifies
the desired table with the specified id column.

i worked a bit on this patch and received help from ruben, who corrected
my less than perfect original patch.
CRM/Contribute/BAO/ContributionRecur.php