From 58f53b1a662ccce9a401c7d2b0967f5aba656a4a Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 12 Aug 2024 09:09:02 +0200 Subject: [PATCH] Fix validation rules for the customer model (#1581) --- application/models/Customers_model.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/application/models/Customers_model.php b/application/models/Customers_model.php index 48915213..0f54f048 100644 --- a/application/models/Customers_model.php +++ b/application/models/Customers_model.php @@ -97,8 +97,8 @@ class Customers_model extends EA_Model } // Make sure all required fields are provided. - $require_first_name = filter_var(setting('require_phone_number'), FILTER_VALIDATE_BOOLEAN); - $require_last_name = filter_var(setting('require_last'), FILTER_VALIDATE_BOOLEAN); + $require_first_name = filter_var(setting('require_first_name'), FILTER_VALIDATE_BOOLEAN); + $require_last_name = filter_var(setting('require_last_name'), FILTER_VALIDATE_BOOLEAN); $require_email = filter_var(setting('require_email'), FILTER_VALIDATE_BOOLEAN); $require_phone_number = filter_var(setting('require_phone_number'), FILTER_VALIDATE_BOOLEAN); $require_address = filter_var(setting('require_address'), FILTER_VALIDATE_BOOLEAN);