Skip to content
This repository
Browse code

BUGFIX Ensure merging correctly

  • Loading branch information...
commit 80facbd81bc61484f5fbea79e2c329334e67c414 1 parent 23c3fb8
Sean Harvey authored April 19, 2012

Showing 1 changed file with 5 additions and 4 deletions. Show diff stats Hide diff stats

  1. 9  forms/EmailField.php
9  forms/EmailField.php
@@ -11,11 +11,12 @@ function Type() {
11 11
 	}
12 12
 
13 13
 	function getAttributes() {
14  
-		$attrs = array(
15  
-			'type' => 'email',
  14
+		return array_merge(
  15
+			parent::getAttributes(),
  16
+			array(
  17
+				'type' => 'email'
  18
+			)
16 19
 		);
17  
-
18  
-		return array_merge($attrs, $this->attributes);
19 20
 	}
20 21
 
21 22
 	/**

0 notes on commit 80facbd

Please sign in to comment.
Something went wrong with that request. Please try again.