Details
-
Type: Bug
-
Status: Done/Fixed
-
Priority: Minor
-
Resolution: Fixed/Completed
-
Affects Version/s: 4.4.11, 4.5.5
-
Fix Version/s: 4.6
-
Component/s: CiviReport
-
Labels:None
-
Documentation Required?:None
Description
CRM_Report_Form::storeOrderByArray() walks through the tables to see if they have any fields available for sorting. If a table has no fields, however, the $fields variable still has the values from the previous table, so you can get mismatched tables and fields in some circumstances, causing a fatal database error.