Addressee Custom views field not showing anything

Created on 26 June 2024, 6 months ago
Updated 9 July 2024, 6 months ago

If I try to add Addressee Custom / Custom Addressee to a CiviCRM contact view, the field is blank in the results. It does work as a filter, but for some reason it won't display as a field.

πŸ› Bug report
Status

Active

Version

4.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom dotsam

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dotsam
  • πŸ‡ΊπŸ‡ΈUnited States markusa

    I dug into this a bit.

    I found that the civicrm api call used to retrieve the contact values from the database, does not return addressee_custom in the result.

    In Core, this function determines fields to exclude:
    https://github.com/civicrm/civicrm-core/blob/master/CRM/Contact/BAO/Cont...

    Normal CiviCRM API3 Contact.get calls are the same. So it would take something different than what we do to retrieve and populate this field.

    It will work for saving a value from the /civicrm-contact/[id]/edit form, as the contact.create API accepts the value.

    We could do a separate direct db query, or perhaps a DAO sql query, and then populate the values. This has been this way for a long long time, and this is the first request for it.

Production build 0.71.5 2024