mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUG: Confirmed Password Field now copies attributes to child fields.
This commit is contained in:
parent
3fd1769142
commit
f431b35b88
@ -122,6 +122,11 @@ class ConfirmedPasswordField extends FormField {
|
||||
foreach($this->children as $field) {
|
||||
$field->setDisabled($this->isDisabled());
|
||||
$field->setReadonly($this->isReadonly());
|
||||
if(count($this->attributes)) {
|
||||
foreach($this->attributes as $name => $value) {
|
||||
$field->setAttribute($name, $value);
|
||||
}
|
||||
}
|
||||
$content .= $field->FieldHolder();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user