diff --git a/forms/AutocompleteTextField.php b/forms/AutocompleteTextField.php index 1e223bf82..584f2a725 100644 --- a/forms/AutocompleteTextField.php +++ b/forms/AutocompleteTextField.php @@ -20,10 +20,8 @@ class AutocompleteTextField extends TextField { function Field() { // Requirements::javascript('sapphire/javascript/AutocompleteTextField.js'); - $extraClass = $this->extraClass(); - $attributes = array( - 'class' => "{$this->class} text", + 'class' => "{$this->class} text " . $this->extraClass(), 'type' => 'text', 'id' => $this->id(), 'name' => $this->name,