The country code select box always reverts to the default rather than showing the saved selection.
Also, if I enter less than 4 digits, I get the following message: "number must be digit only." (It should instead say that not enough digits were entered.)
I'm using CCK 6.x-2.7.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | cck_phone-851184.patch | 5.29 KB | ckng |
Comments
Comment #1
rubymuse commentedI think I fixed this by adding parentheses on line 666 of cck_phone.module:
'#default_value' => isset($element['#value']['country_codes']) ? $element['#value']['country_codes'] : (isset($field['default_country']) ? $field['default_country'] : NULL)
Putting in my vote for this one: #849006: Phone types (home, work, mobile, fax, etc) support
Thanks!
Comment #2
ckngGood catch.
This should be safer
As for the error message, rephrased into
Committed to dev.