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.
The $codes array in phone_country_code_convert() is declared static, it is then flipped depending on the flag $Input_type. This causes the flag to work completely opposite second time it's called.
Tiny patch to follow.
Comment | File | Size | Author |
---|---|---|---|
#1 | phone-country-code-convert-1988762-2.patch | 823 bytes | msmithcti |
Comments
Comment #1
msmithcti CreditAttribution: msmithcti commentedComment #2
roderik+1 to this, but it's also fixed in #2108707: Improved parsing of international numbers. (That's why I haven't tested this patch separately.)
Comment #3
DamienMcKennaLets close this in favor of #2108707: Improved parsing of international numbers.