Remove `required` attribute for user form field
authorMatthias Schmidt <gravatronics@live.com>
Sat, 19 May 2018 07:32:59 +0000 (09:32 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Sat, 19 May 2018 07:32:59 +0000 (09:32 +0200)
The `required` attribute does not work as expected here as the input field to enter a username should be empty because the entered values are stored in the `ol.inputItemList` element.

See #2509

wcfsetup/install/files/acp/templates/__userFormField.tpl

index 61976291f7ff63874e5449f17921870765b707b6..8247c9425b5541ecc8281a1775647d49ffa9c9c0 100644 (file)
@@ -6,7 +6,6 @@
        *}value="{if $field->allowsMultiple()}{if $field->getValue()|is_array}{implode from=$field->getValue() item=username}{$username}{/implode}{/if}{else}{$field->getValue()}{/if}" {*
        *}class="long"{*
        *}{if $field->isAutofocused()} autofocus{/if}{*
-       *}{if $field->isRequired()} required{/if}{*
        *}{if $field->isImmutable()} disabled{/if}{*
 *}>