X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FReport%2FForm%2FContact%2FLoggingSummary.php;h=54112c960c02b2050a8abde94ecf0d3d124277a6;hb=9747cc7e7676edd433c3c76e476a0fd0bd74ea7e;hp=e31dcee8049e1db5d41ab054769580c86782497a;hpb=6fa503cfb0cfcc8339fbe4d1e4bc5c1e6fb1dee8;p=civicrm-core.git diff --git a/CRM/Report/Form/Contact/LoggingSummary.php b/CRM/Report/Form/Contact/LoggingSummary.php index e31dcee804..54112c960c 100644 --- a/CRM/Report/Form/Contact/LoggingSummary.php +++ b/CRM/Report/Form/Contact/LoggingSummary.php @@ -1,9 +1,9 @@ cid) { $q .= '&cid=' . $this->cid; } + $q .= (!empty($row['log_civicrm_entity_altered_contact'])) ? + '&alteredName='.$row['log_civicrm_entity_altered_contact'] : ''; + $q .= (!empty($row['altered_by_contact_display_name'])) ? + '&alteredBy='.$row['altered_by_contact_display_name'] : ''; + $q .= (!empty($row['log_civicrm_entity_log_user_id'])) ? + '&alteredById='.$row['log_civicrm_entity_log_user_id'] : ''; $url1 = CRM_Report_Utils_Report::getNextUrl('logging/contact/detail', "{$q}&snippet=4§ion=2&layout=overlay", FALSE, TRUE); $url2 = CRM_Report_Utils_Report::getNextUrl('logging/contact/detail', "{$q}§ion=2", FALSE, TRUE); @@ -222,6 +234,9 @@ class CRM_Report_Form_Contact_LoggingSummary extends CRM_Logging_ReportSummary { $rows = $newRows; } + /** + * @param null $logTable + */ function from( $logTable = null ) { static $entity = null; if ( $logTable ) { @@ -237,7 +252,7 @@ class CRM_Report_Form_Contact_LoggingSummary extends CRM_Logging_ReportSummary { INNER JOIN civicrm_contact modified_contact_civireport ON (entity_log_civireport.{$detail['fk']} = modified_contact_civireport.id {$clause})"; - if (CRM_Utils_Array::value('joins', $detail)) { + if (!empty($detail['joins'])) { $clause = CRM_Utils_Array::value('entity_table', $detail); $clause = $clause ? "AND fk_table.entity_table = 'civicrm_contact'" : null; $joinClause = "