Source

iredadmin-ose / templates / default / ldap / admin / profile.html

Diff from to

File templates/default/ldap/admin/profile.html

                 {{ display_csrf_token() }}
 
                 {% if profile_type == 'general' %}
-                    {% set preferredLanguage = entry.get('preferredLanguage', ['en_US'])[0] |string |e %}
-
                     <div class="columns clear">
                         <div class="col2-3">
                             {% if session.get('domainGlobalAdmin') is sameas true %}
                             {% endif %}
 
                             {{ display_input_cn(cn=cn, accountType='admin') }}
-                            {{ display_preferred_language(value=preferredLanguage, languagemaps=languagemaps) }}
+                            {{ display_preferred_language(value=entry.get('preferredLanguage', ['en_US'])[0], languagemaps=languagemaps) }}
                         </div>
                     </div>{# .columns #}