From 418b485216541826238b763c5e0f0972add22519 Mon Sep 17 00:00:00 2001 From: barthc Date: Thu, 26 Sep 2024 12:10:56 +0100 Subject: [PATCH] `gw-progress-meter.php`: Fixed an issue where refunds are included in the total paid count. --- gravity-forms/gw-progress-meter.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gravity-forms/gw-progress-meter.php b/gravity-forms/gw-progress-meter.php index 21ff5f096..2584d3832 100644 --- a/gravity-forms/gw-progress-meter.php +++ b/gravity-forms/gw-progress-meter.php @@ -100,7 +100,8 @@ public function get_count( $atts ) { 'join' => '', 'where' => $wpdb->prepare( " WHERE e.form_id = %d - AND e.status = 'active'\n", + AND e.status = 'active' + AND e.payment_status = 'Paid'\n", $atts['id'] ), );