dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Remove single-item HTML list for re-upload link"
[lhc/web/wiklou.git]
/
includes
/
htmlform
/
fields
/
HTMLSelectAndOtherField.php
diff --git
a/includes/htmlform/fields/HTMLSelectAndOtherField.php
b/includes/htmlform/fields/HTMLSelectAndOtherField.php
index
85cbbb1
..
354432b
100644
(file)
--- a/
includes/htmlform/fields/HTMLSelectAndOtherField.php
+++ b/
includes/htmlform/fields/HTMLSelectAndOtherField.php
@@
-130,6
+130,7
@@
class HTMLSelectAndOtherField extends HTMLSelectField {
'textinput' => $textAttribs,
'dropdowninput' => $dropdownInputAttribs,
'or' => false,
'textinput' => $textAttribs,
'dropdowninput' => $dropdownInputAttribs,
'or' => false,
+ 'required' => $this->mParams[ 'required' ] ?? false,
'classes' => [ 'mw-htmlform-select-and-other-field' ],
'data' => [
'maxlengthUnit' => $this->mParams['maxlength-unit'] ?? 'bytes'
'classes' => [ 'mw-htmlform-select-and-other-field' ],
'data' => [
'maxlengthUnit' => $this->mParams['maxlength-unit'] ?? 'bytes'