Getting coverage to 100% on these classes
Also found a bug in the Form class that would bork phone numbers with dashes in them. Even though the Form class is going to go away eventually I wanted to fix the issue.
This commit is contained in:
parent
5ef3b58f53
commit
faaefc1b82
6 changed files with 164 additions and 11 deletions
|
@ -327,7 +327,7 @@ class Form extends Object
|
|||
$additional .= ' class="' . $classes . '"';
|
||||
}
|
||||
|
||||
return '<select id="' . $name . '" name="' . $name . '" class="' . $classes . '"' . $additional . '>' . $this->options($options, $selected) . '</select>';
|
||||
return '<select id="' . $name . '" name="' . $name . '"' . $additional . '>' . $this->options($options, $selected) . '</select>';
|
||||
}
|
||||
|
||||
// }}}
|
||||
|
@ -629,6 +629,7 @@ class Form extends Object
|
|||
}
|
||||
else
|
||||
{
|
||||
$value = str_replace('-', '', $value);
|
||||
$value = array(
|
||||
'area_code' => substr($value, 0, 3),
|
||||
'prefix' => substr($value, 3, 3),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue