lib/api

Jeroen van Meeuwen vanmeeuwen at kolabsys.com
Sun Apr 8 13:53:21 CEST 2012


 lib/api/kolab_api_service_form_value.php |    4 ++++
 1 file changed, 4 insertions(+)

New commits:
commit edf09ae570e8adf804154794a9fc86f8f050a864
Author: Jeroen van Meeuwen (Kolab Systems) <vanmeeuwen at kolabsys.com>
Date:   Sun Apr 8 13:52:13 2012 +0200

    Do not just insert the default_locale as the default value for the preferredlanguage select list, take into account the object may already have a preferredlanguage set

diff --git a/lib/api/kolab_api_service_form_value.php b/lib/api/kolab_api_service_form_value.php
index 300da36..694a1d8 100644
--- a/lib/api/kolab_api_service_form_value.php
+++ b/lib/api/kolab_api_service_form_value.php
@@ -659,6 +659,10 @@ class kolab_api_service_form_value extends kolab_api_service
             $default = 'en_US';
         }
 
+        if (!empty($postdata['preferredlanguage'])) {
+            $default = $postdata['preferredlanguage'];
+        }
+
         $options['default'] = $default;
 
         return $options;





More information about the commits mailing list