Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As per request in #1309524: Country selection reset to default in widget output, to make the default country code optional.
Comment | File | Size | Author |
---|---|---|---|
#1 | cck_phone-optional_default_country-1323726-1.patch | 3.45 KB | ckng |
Comments
Comment #1
ckngNote: Somehow the D7 form api '#states' does not work here
Comment #2
ckngWorking code committed.
Comment #3
adam_b CreditAttribution: adam_b commentedWas this committed to the 16 Feb dev version? I've tried it and it's still requiring a default country code.
Comment #4
adam_b CreditAttribution: adam_b commentedFound it in the 17 Feb release, thanks.
Comment #5
geerlingguy CreditAttribution: geerlingguy commentedI'm now getting the following two errors every time someone saves a record with a phone cck field in it:
Comment #6
ckngTry re-saving the field (as in the content type, not the node).
Comment #7
geerlingguy CreditAttribution: geerlingguy commentedIs there an easy way to do this programmatically? For some interesting reasons, I have over 250 profile types on my site, and having to manually go in and re-save the field on each profile type would take a few hours.