From 578140cb6d4faaf54c38f24ef7a89e4dbf4eb30e Mon Sep 17 00:00:00 2001 From: StevenDufresne Date: Wed, 11 Oct 2023 11:00:42 +0900 Subject: [PATCH] Attendee Survey: Use ceil to limit improve response rate ui. --- .../plugins/camptix-attendee-survey/includes/admin-page.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public_html/wp-content/plugins/camptix-attendee-survey/includes/admin-page.php b/public_html/wp-content/plugins/camptix-attendee-survey/includes/admin-page.php index 32cf0f731..db719b7b6 100644 --- a/public_html/wp-content/plugins/camptix-attendee-survey/includes/admin-page.php +++ b/public_html/wp-content/plugins/camptix-attendee-survey/includes/admin-page.php @@ -93,7 +93,7 @@ function get_feedback_details() { 'responses_url' => admin_url( sprintf( 'edit.php?post_type=feedback&jetpack_form_parent_id=%s', get_page_id() ) ), 'sent' => $sent, 'responses' => $responses, - 'rate' => 0 !== $sent ? ( $responses / $sent ) * 100 . '%' : '', + 'rate' => 0 !== $sent ? ceil( ( $responses / $sent ) * 100 ) . '%' : '', ); // Restore the original site context.