[useradmin] Fix login page error for invalid local user when LDAP also enabled
@@ -119,11 +119,13 @@ ${ commonheader(_("Welcome to Hue"), "login", user, request, "50px", True, True)
%if active_directory:
<div
- %if len(form.fields['server'].choices) == 1:
+ %if 'server' in form.fields and len(form.fields['server'].choices) == 1:
class="hide"
%endif
>
+ %if 'server' in form.fields:
${ form['server'] | n,unicode }
+ %endif
</div>
%endif
