Permalink
Browse files

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

  • Loading branch information...
1 parent 3fd1769 commit f431b35b8809805c242a938d29bced507ce37623 @TheFrozenFire TheFrozenFire committed with simonwelsh Dec 11, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 forms/ConfirmedPasswordField.php
@@ -122,6 +122,11 @@ public function Field($properties = array()) {
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();
}

0 comments on commit f431b35

Please sign in to comment.