Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • S Search and Reporting - archived
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Development
  • Search and Reporting - archived
  • Issues
  • #12
Closed (moved) (moved)
Open
Created Feb 25, 2019 by JonGold@JonGoldDeveloper

Allow new custom field entities to be added to reports

Now that we allow custom fields on almost any entity, it makes sense that we should allow CiviReport to make use of these. E.g. contribution reports should allow the use of FinancialType custom fields; relationship reports should allow RelationshipType custom fields, etc.

Ideally, this should be possible by adding the entity to the report's $_customGroupExtends array. However, this fails because CRM_Report_Form::customDataFrom() calls CRM_Core_BAO_CustomQuery::$extendsMap, a hard-coded list of tables which various entities extend.

I propose replacing calls to CRM_Core_BAO_CustomQuery::$extendsMap with a new method CRM_Core_BAO_CustomQuery::getExtendsMap(), which will also pull in any entities defined in civicrm_option_value.

I'm happy to do this work, I would like concept approval first though.

Edited Feb 25, 2019 by JonGold
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking