From 617e7f6287707cb3345049cf66038a7eae1cf463 Mon Sep 17 00:00:00 2001
From: Paul Kevan <2290623+pkevan@users.noreply.github.com>
Date: Thu, 30 May 2024 12:32:08 +0100
Subject: [PATCH] Switch pledge URL
Swap for a more usable field for pledge URL.
---
plugins/wporg-5ftf/includes/reports.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/plugins/wporg-5ftf/includes/reports.php b/plugins/wporg-5ftf/includes/reports.php
index d6bd86c..fd6fe7e 100644
--- a/plugins/wporg-5ftf/includes/reports.php
+++ b/plugins/wporg-5ftf/includes/reports.php
@@ -137,12 +137,12 @@ function render_company_report_page() {
echo '
' . esc_html( $usernames ) . ' | ';
echo ' ' . esc_html( $teams ) . ' | ';
echo ' ' . esc_html( $company_url ) . ' | ';
- echo ' ' . esc_html( $pledge_url ) . ' | ';
+ echo ' ' . esc_html( $pledge->guid ) . ' | ';
echo ' ' . esc_html( $email ). ' | ';
echo ' ' . esc_html( $date_created ) . ' | ';
echo ' ' . esc_html( $date_modified ) . ' | ';
echo '';
- $export_data[] = array( $pledge->post_title, $pledge->post_status, $hours, $contributors, $usernames, $teams, $company_url, $pledge_url, $email, $date_created, $date_modified );
+ $export_data[] = array( $pledge->post_title, $pledge->post_status, $hours, $contributors, $usernames, $teams, $company_url, $pledge->guid, $email, $date_created, $date_modified );
}
echo '';
echo 'Total contributors: ' . esc_html( $all_contributors ) . '
';