fix display of contacts' recurring contributions
authorAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 4 Jan 2017 21:45:12 +0000 (16:45 -0500)
committerAndrew Engelbrecht <sudoman@ninthfloor.org>
Wed, 4 Jan 2017 21:45:12 +0000 (16:45 -0500)
commitb8d15d544ccc74365328ce59876071c43d848443
tree82e1cf42b0f45813dd0bd00693dd85f16adc90fc
parent6584016323eb9da1ba86b692cb301cba34e45d42
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