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

undefined variable $contact when running saved search

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.1.1
    • Fix Version/s: 4.1.2
    • Component/s: Core CiviCRM
    • Labels:
      None

      Description

      In CRM/Contact/BAO/SavedSearch.php, in the contactIDsSQL() function, there's the line:

      $tables = $whereTables = array( $contact => 1 );

      $contact is not defined, hence the error. I think the line should be:

      $tables = $whereTables = array( $contact => 1 );

      In which case the attached patch should fix it.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              jamie Jamie McClelland
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: