Permalink
Browse files

BUGFIX Ensure merging correctly

  • Loading branch information...
1 parent 23c3fb8 commit 80facbd81bc61484f5fbea79e2c329334e67c414 @halkyon halkyon committed Apr 19, 2012
Showing with 5 additions and 4 deletions.
  1. +5 −4 forms/EmailField.php
View
@@ -11,11 +11,12 @@ function Type() {
}
function getAttributes() {
- $attrs = array(
- 'type' => 'email',
+ return array_merge(
+ parent::getAttributes(),
+ array(
+ 'type' => 'email'
+ )
);
-
- return array_merge($attrs, $this->attributes);
}
/**

0 comments on commit 80facbd

Please sign in to comment.