Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
C
Core
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 918
    • Issues 918
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
  • Development
  • Core
  • Issues
  • #2285

Closed
Open
Opened Jan 04, 2021 by ahed_compucorp@ahed_compucorp

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.

The code.

Peek_2021-01-04_17-19

check the test case in the PR.

PR: https://github.com/civicrm/civicrm-core/pull/19317

Edited Jan 04, 2021 by ahed_compucorp
To upload designs, you'll need to enable LFS and have admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: dev/core#2285