The civicrm_alterReportVar hook is not working for contribute detail report
civicrm_alterReportVar is not working for contribute detail report when the user select the new column or choose the new filter, and it will show an error message
DB Error: no such field
Unknown column 'some_table.some_column' in 'where clause'
I believe this is a regression on soft credits.
Any suffecient use of this hook will face the error message.
check the test case in the PR.