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

No reporting of DBMS errors in CRM_Contact_Form_Search_Custom_Group::from()

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 2.2.2, 2.2.3, 2.2.4, 3.0
    • Fix Version/s: 3.0.2
    • Component/s: CiviCRM Search
    • Labels:
      None

      Description

      The CRM_Contact_Form_Search_Custom_Group::from() method executes SQL queries for smart groups. There are a total of eleven calls to CRM_Core_DAO::executeQuery() in this method. In all eleven cases, errors reported by these calls are completely ignored, and in the case of an error, incorrect search results are returned to the user with no indication that anything is wrong. For this reason, smart groups which use saved searches with tables that don't exist in the current database give no error indication to the user, and return incorrect information.

        Attachments

          Activity

            People

            • Assignee:
              lobo Donald A. Lobo
              Reporter:
              dharmatech Dharmatech
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: