The civicrm_alterReportVar hook is not working for contribute detail report
Overview
The 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
Here at Detail.php#L956 our changes to the _form
attribute are lost and the error will be fired here Detail.php#L576
Unknown column 'some_table.some_column' in 'where clause'
I believe this is a regression on soft credits.
Reproduction steps
Any suffecient use of this hook will face the error message.
check the test case in the PR.
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information