From 5b2ba46a5a1706a119166f6525d05bce64104877 Mon Sep 17 00:00:00 2001 From: Ravinder Kumar Date: Wed, 22 Feb 2017 10:35:47 +0530 Subject: [PATCH] Show correct donation id and gateway name in log list --- .../admin/reporting/class-gateway-error-logs-list-table.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/admin/reporting/class-gateway-error-logs-list-table.php b/includes/admin/reporting/class-gateway-error-logs-list-table.php index 7a4e408d8b..198cb77dcb 100644 --- a/includes/admin/reporting/class-gateway-error-logs-list-table.php +++ b/includes/admin/reporting/class-gateway-error-logs-list-table.php @@ -68,9 +68,9 @@ public function column_default( $item, $column_name ) { case 'ID' : return $item['ID_label']; case 'payment_id' : - return empty( $item->payment_id ) ? esc_html__( 'n/a', 'give' ) : $item->payment_id; + return empty( $item['payment_id'] ) ? esc_html__( 'n/a', 'give' ) : sprintf( "{$item['payment_id']}", get_edit_post_link( $item['payment_id'] ) ); case 'gateway' : - return empty( $item->gateway ) ? esc_html__( 'n/a', 'give' ) : $item->gateway; + return empty( $item['gateway'] ) ? esc_html__( 'n/a', 'give' ) : $item['gateway']; case 'error' : return get_the_title( $item['ID'] ) ? get_the_title( $item['ID'] ) : esc_html__( 'Payment Error', 'give' ); default: