From 88b8f87f9718d6fae87ddad84b3e5bd5d0b0e04b Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Tue, 18 Jun 2024 10:18:56 +0200 Subject: [PATCH] Add missing timezone and language props in API --- application/models/Customers_model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/models/Customers_model.php b/application/models/Customers_model.php index d4d241ba..48915213 100644 --- a/application/models/Customers_model.php +++ b/application/models/Customers_model.php @@ -457,6 +457,7 @@ class Customers_model extends EA_Model 'zip' => $customer['zip_code'], 'notes' => $customer['notes'], 'timezone' => $customer['timezone'], + 'language' => $customer['language'], 'customField1' => $customer['custom_field_1'], 'customField2' => $customer['custom_field_2'], 'customField3' => $customer['custom_field_3'], @@ -514,6 +515,10 @@ class Customers_model extends EA_Model $decoded_resource['language'] = $customer['language']; } + if (array_key_exists('timezone', $customer)) { + $decoded_resource['timezone'] = $customer['timezone']; + } + if (array_key_exists('customField1', $customer)) { $decoded_resource['custom_field_1'] = $customer['customField1']; }