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

Warnings in relationship report when running in PHP developer mode.

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.7.3
    • Fix Version/s: None
    • Component/s: CiviReport
    • Labels:
    • Documentation Required?:
      None
    • Funding Source:
      Contributed Code

      Description

      When running under IIS in PHP developer mode, running a relationship report gave the following warnings.
      PHP Warning: Invalid argument supplied for foreach() in D:\CiviCRM_Custom.git\Custom\Code\CRM\Report\Form\Contact\Relationship.php on line 582

      PHP Warning: strlen() expects parameter 1 to be string, array given in D:\CiviCRM_Custom.git\joomla\administrator\components\com_civicrm\civicrm\CRM\Report\Form.php on line 1894

      The first was caused by the parameter not being an array, and the second because it was. II introduced logic to check for the two conditions and attach patch files against their 4.7.3 versions.

        Attachments

        1. Report_Form.Patch.patch
          0.4 kB
          Stephen Palmstrom
        2. Report_Relationship.patch
          0.6 kB
          Stephen Palmstrom

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              spalmstr Stephen Palmstrom
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: