From 81a2f65e87bbfc287e4a9a8645d791dbb4461eee Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Mon, 27 May 2024 17:05:42 +0200 Subject: [PATCH] Add missing language field from API encoding/decoding --- application/models/Providers_model.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/application/models/Providers_model.php b/application/models/Providers_model.php index 5f3fa9da..8728aa3c 100755 --- a/application/models/Providers_model.php +++ b/application/models/Providers_model.php @@ -766,6 +766,7 @@ class Providers_model extends EA_Model 'is_private' => $provider['is_private'], 'ldapDn' => $provider['ldap_dn'], 'timezone' => $provider['timezone'], + 'language' => $provider['language'], ]; if (array_key_exists('services', $provider)) { @@ -877,6 +878,10 @@ class Providers_model extends EA_Model $decoded_resource['timezone'] = $provider['timezone']; } + if (array_key_exists('language', $provider)) { + $decoded_resource['language'] = $provider['language']; + } + if (array_key_exists('services', $provider)) { $decoded_resource['services'] = $provider['services']; }