Skip to content

Commit

Permalink
BUG Fixed incorrect variable usage in generation of PhoneNumberField …
Browse files Browse the repository at this point in the history
…form fields
  • Loading branch information
tractorcow committed Apr 12, 2013
1 parent 59dc008 commit 0dfc6d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions forms/PhoneNumberField.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ public function Field($properties = array()) {
$fields = new FieldGroup( $this->name );
$fields->setID("{$this->name}_Holder");
list($countryCode, $areaCode, $phoneNumber, $extension) = $this->parseValue();
$hasTitle = false;

if ($this->value=="") {
$countryCode=$this->countryCode;
Expand All @@ -51,7 +50,7 @@ public function Field($properties = array()) {
}

if($this->ext !== null) {
$field->push(new NumericField( $this->name.'[Extension]', 'ext', $extension, 6));
$fields->push(new NumericField( $this->name.'[Extension]', 'ext', $extension, 6));
}

$description = $this->getDescription();
Expand All @@ -62,7 +61,7 @@ public function Field($properties = array()) {
$field->setReadonly($this->isReadonly());
}

return $field;
return $fields;
}

public function setValue( $value ) {
Expand Down

0 comments on commit 0dfc6d5

Please sign in to comment.