BUG: Confirmed Password Field now copies attributes to child fields.

This commit is contained in:
Justin Martin 2012-12-11 13:57:45 -08:00 committed by Simon Welsh
parent 3fd1769142
commit f431b35b88

View File

@ -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();
}