Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-21402

Custom data fails to pull through to reports

    Details

    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code
    • Verified?:
      Yes
    • Overview:
      Participant listing Reports are failing to pull through custom data in 4.6.33
    • How it works currently:
      Data is not pulled through, and new data generates erros messages (notices)
    • How it should work:
      data is pulled through to the report from the Contacts Custom data sets

      Description

      I've marked this as critical, as it affects the outcome of reports, and therefore can affect funding applications and reporting for organisations.

      Although data is not pulled through if it's legacy data in the contact custom fields, If the contacts custom fields are populated after the upgrade, there are notices shown throught the UI.

      I've gone for reproducing the notices here: 

      • use the 'Participant (List) report on d46.demo
      • add columns (all 3 from 'Constituent Information') 
        • Constituent Information > Most Important Issue
        • Constituent Information > Marital Status
        • Constituent Information > Marital Date
      • populate a contact from the report results with custom info in the above fields (I chose the top participant Nicole Adams
      • re-preview the report

      Expected behaviour:

      • report shows newly added info

      Actual behaviour:

      • most information is not shown (the Marraige Date is)
      • civi shows notices

       

      Error message

      *

       

      Notice: Undefined index: Edu in CRM_Report_Form->formatCustomValues() (line 2061 of /srv/buildkit/build/d46/sites/all/modules/civicrm/CRM/Report/Form.php).

      *

       

      Notice: Undefined index: M in CRM_Report_Form->formatCustomValues() (line 2061 of /srv/buildkit/build/d46/sites/all/modules/civicrm/CRM/Report/Form.php).

      The error messages are not shown if the data was legacy (from before the upgrade), but is missing from the report.

       

      Rolling back to 4.6.30 (that's what the original site was updated from) fixes the problem, but there don't appear to be any changes in drupal/sites/all/modules/civicrm/CRM/Report/Form/Event/ParticipantListing.php  - thanks @seamuslee

       

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                davej Dave Jenkins
                Reporter:
                marshCircle Martin Castle
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: