From f431b35b8809805c242a938d29bced507ce37623 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Tue, 11 Dec 2012 13:57:45 -0800 Subject: [PATCH] BUG: Confirmed Password Field now copies attributes to child fields. --- forms/ConfirmedPasswordField.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/forms/ConfirmedPasswordField.php b/forms/ConfirmedPasswordField.php index 7f8e9b82c..844e98367 100644 --- a/forms/ConfirmedPasswordField.php +++ b/forms/ConfirmedPasswordField.php @@ -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(); }