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

Case Detail Report cannot filter by "Last Action Date"

    Details

    • Type: Bug
    • Status: Done/Fixed
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 4.7
    • Fix Version/s: 4.7.25
    • Component/s: CiviReport
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding
    • Verified?:
      No

      Description

      Database Error Code: Unknown column 'civireport_activity_last_civireport.activity_date_time' in 'where clause', 1054
      Additional Details:
      Array
      (
      [callback] => Array
      (
      [0] => CRM_Core_Error
      [1] => handle
      )

      [code] => -19
      [message] => DB Error: no such field
      [mode] => 16
      [debug_info] => SELECT SQL_CALC_FOUND_ROWS case_civireport.id as civicrm_case_id, case_civireport.subject as civicrm_case_subject, contact_civireport.sort_name as civicrm_contact_client_sort_name, contact_civireport.id as civicrm_contact_id
      FROM civicrm_case case_civireport
      LEFT JOIN civicrm_case_contact civireport_case_contact on civireport_case_contact.case_id = case_civireport.id
      LEFT JOIN civicrm_contact contact_civireport ON contact_civireport.id = civireport_case_contact.contact_id

      LEFT JOIN civicrm_address address_civireport
      ON contact_civireport.id = address_civireport.contact_id AND
      address_civireport.is_primary = 1 WHERE ( case_civireport.is_deleted = 0 ) AND ( civireport_activity_last_civireport.activity_date_time <= 20160601235959 ) GROUP BY case_civireport.id ORDER BY case_civireport.start_date ASC LIMIT 0, 50 [nativecode=1054 ** Unknown column 'civireport_activity_last_civireport.activity_date_time' in 'where clause']
      [type] => DB_Error
      [user_info] => SELECT SQL_CALC_FOUND_ROWS case_civireport.id as civicrm_case_id, case_civireport.subject as civicrm_case_subject, contact_civireport.sort_name as civicrm_contact_client_sort_name, contact_civireport.id as civicrm_contact_id
      FROM civicrm_case case_civireport
      LEFT JOIN civicrm_case_contact civireport_case_contact on civireport_case_contact.case_id = case_civireport.id
      LEFT JOIN civicrm_contact contact_civireport ON contact_civireport.id = civireport_case_contact.contact_id

      LEFT JOIN civicrm_address address_civireport
      ON contact_civireport.id = address_civireport.contact_id AND
      address_civireport.is_primary = 1 WHERE ( case_civireport.is_deleted = 0 ) AND ( civireport_activity_last_civireport.activity_date_time <= 20160601235959 ) GROUP BY case_civireport.id ORDER BY case_civireport.start_date ASC LIMIT 0, 50 [nativecode=1054 ** Unknown column 'civireport_activity_last_civireport.activity_date_time' in 'where clause']
      [to_string] => [db_error: message="DB Error: no such field" code=-19 mode=callback callback=CRM_Core_Error::handle prefix="" info="SELECT SQL_CALC_FOUND_ROWS case_civireport.id as civicrm_case_id, case_civireport.subject as civicrm_case_subject, contact_civireport.sort_name as civicrm_contact_client_sort_name, contact_civireport.id as civicrm_contact_id
      FROM civicrm_case case_civireport
      LEFT JOIN civicrm_case_contact civireport_case_contact on civireport_case_contact.case_id = case_civireport.id
      LEFT JOIN civicrm_contact contact_civireport ON contact_civireport.id = civireport_case_contact.contact_id

      LEFT JOIN civicrm_address address_civireport
      ON contact_civireport.id = address_civireport.contact_id AND
      address_civireport.is_primary = 1 WHERE ( case_civireport.is_deleted = 0 ) AND ( civireport_activity_last_civireport.activity_date_time <= 20160601235959 ) GROUP BY case_civireport.id ORDER BY case_civireport.start_date ASC LIMIT 0, 50 [nativecode=1054 ** Unknown column 'civireport_activity_last_civireport.activity_date_time' in 'where clause']"]
      )

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              Dahndy David Hayes
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: