Add missing language field from API encoding/decoding

This commit is contained in:
Alex Tselegidis 2024-05-27 17:05:42 +02:00
parent ff4657fce6
commit 81a2f65e87

View file

@ -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'];
}