From 85120fa4becd2048685b406ecf67f4dbe23389c0 Mon Sep 17 00:00:00 2001 From: diego-ramos Date: Thu, 22 May 2025 15:34:39 -0500 Subject: [PATCH] Fix encoding issue for payment types with special characters (#4232) --- app/Controllers/Sales.php | 2 +- app/Views/sales/register.php | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/Sales.php b/app/Controllers/Sales.php index fd97055ac..3cce20b59 100644 --- a/app/Controllers/Sales.php +++ b/app/Controllers/Sales.php @@ -466,7 +466,7 @@ class Sales extends Secure_Controller */ public function getDeletePayment(string $payment_id): void { - $this->sale_lib->delete_payment($payment_id); + $this->sale_lib->delete_payment(base64_decode($payment_id)); $this->_reload(); // TODO: Hungarian notation } diff --git a/app/Views/sales/register.php b/app/Views/sales/register.php index dfc838eec..60d752c17 100644 --- a/app/Views/sales/register.php +++ b/app/Views/sales/register.php @@ -478,8 +478,8 @@ if (isset($success)) { $payment) { ?> - ') ?> - + ') ?> +