From 88007f56be12acbd55c5be2d97a253b0ac64ee22 Mon Sep 17 00:00:00 2001 From: objecttothis Date: Tue, 5 Dec 2023 14:11:05 +0400 Subject: [PATCH] Fixed enforce_privacy checkbox --- app/Controllers/Config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Controllers/Config.php b/app/Controllers/Config.php index f051d9890..631502118 100644 --- a/app/Controllers/Config.php +++ b/app/Controllers/Config.php @@ -400,7 +400,7 @@ class Config extends Secure_Controller 'default_sales_discount' => $this->request->getPost('default_sales_discount', FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION), 'default_receivings_discount_type' => $this->request->getPost('default_receivings_discount_type') != null, 'default_receivings_discount' => $this->request->getPost('default_receivings_discount', FILTER_SANITIZE_NUMBER_FLOAT, FILTER_FLAG_ALLOW_FRACTION), - 'enforce_privacy' => $this->request->getPost('enforce_privacy', FILTER_SANITIZE_NUMBER_INT), + 'enforce_privacy' => $this->request->getPost('enforce_privacy') != null, 'receiving_calculate_average_price' => $this->request->getPost('receiving_calculate_average_price') != null, 'lines_per_page' => $this->request->getPost('lines_per_page', FILTER_SANITIZE_NUMBER_INT), 'notify_horizontal_position' => $this->request->getPost('notify_horizontal_position'),