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

Advanced Search by contribution status throws FATAL error

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Major
    • Resolution: Fixed/Completed
    • Affects Version/s: 4.6
    • Fix Version/s: 4.6
    • Labels:
      None
    • Documentation Required?:
      None

      Description

      Advanced Search > Contributions > Status = Completed

      Fatal error caused by this phrase (note missing IN or = and status_id is wrong for Completed, s/b 1)

      WHERE ( civicrm_contribution.contribution_status_id 0 )

      SELECT DISTINCT UPPER(LEFT(contact_a.sort_name, 1)) as sort_name FROM civicrm_contact contact_a LEFT JOIN civicrm_contribution ON civicrm_contribution.contact_id = contact_a.id WHERE ( civicrm_contribution.contribution_status_id 0 ) AND (contact_a.is_deleted = 0) ORDER BY UPPER(LEFT(contact_a.sort_name, 1)) asc

      [nativecode=1064 ** You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '0 ) AND (contact_a.is_deleted = 0) ORDER BY UPPER(LEFT(contact_a.sort_name, ' at line 1]

        Attachments

          Activity

            People

            • Assignee:
              pratiksha pratiksha
              Reporter:
              dgg David Greenberg
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: