tables[] = 'civicrm_contribution'; $this->tables = array_merge($this->tables, array_keys($logging->customDataLogTables())); $this->detail = 'logging/contribute/detail'; $this->summary = 'logging/contribute/summary'; parent::__construct(); } function buildQuickForm() { parent::buildQuickForm(); // link back to summary report $this->assign('backURL', CRM_Report_Utils_Report::getNextUrl('logging/contribute/summary', 'reset=1', FALSE, TRUE)); } protected function whoWhomWhenSql() { return " SELECT who.id who_id, who.display_name who_name, whom.id whom_id, whom.display_name whom_name FROM `{$this->db}`.log_civicrm_contribution l LEFT JOIN civicrm_contact who ON (l.log_user_id = who.id) LEFT JOIN civicrm_contact whom ON (l.contact_id = whom.id) WHERE log_action = 'Update' AND log_conn_id = %1 AND log_date = %2 ORDER BY log_date DESC LIMIT 1 "; } }