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

A custom report will trigger several php Notices - Undefined Index: no_display and type

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Minor
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.0.2
    • Fix Version/s: 3.4.4, 4.0.4
    • Component/s: None
    • Labels:
      None

      Description

      When creating a custom report utilizing the protected $_customGroupExtends() functionality three php Notices will appear. This is how I implemented by customGroup,

      protected $_customGroupExtends = array( 'Individual', 'Activity' );

      Doing so triggers the following:

      Notice: Undefined index: no_display in CRM_Report_Form_LeaveReport->select() (line 229 of /vpfa-dev/fa-drupal7/fmlaProject/sites/default/files/civiCustomCode/CRM/Report/Form/LeaveReport.php).
      Notice: Undefined index: no_display in CRM_Report_Form_LeaveReport->select() (line 224 of /vpfa-dev/fa-drupal7/fmlaProject/sites/default/files/civiCustomCode/CRM/Report/Form/LeaveReport.php).
      Notice: Undefined index: type in CRM_Report_Form_LeaveReport->where() (line 292 of /vpfa-dev/fa-drupal7/fmlaProject/sites/default/files/civiCustomCode/CRM/Report/Form/LeaveReport.php).

      The custom report is based on the provided ActivitySummary.php report found in CRM/Report/Form/

      I am unable to test this on the d7 sandbox because it is a custom report.

        Attachments

          Activity

            People

            • Assignee:
              rajan Rajan P Mayekar
              Reporter:
              themusician Max Bronsema
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: