Active
Project:
Phone
Version:
6.x-2.18
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 Jan 2011 at 08:09 UTC
Updated:
11 Nov 2012 at 21:23 UTC
Hello,
I found a bug in phone.es.inc file:
Validation function (valid_es_phone_number) works OK (I didn't try every possible combination, but for me there was no bugs until now...), but format function (format_es_phone_number) converts any inserted phone number into an string with two characters (two blank spaces) before inserting into database because of the preg_match function in line 68.
In order to fix it temporarily , just comment the line 71 and it won't delete the number, but no format is applied (inserted value == shown value):
// $phonenumber = $matches[1] . ' ' . $matches[2] . ' ' . $matches[3];
I also attached a patch for this temporary solution
| Comment | File | Size | Author |
|---|---|---|---|
| phone.es_.inc_.patch | 427 bytes | grisendo |
Comments
Comment #1
vthirteen commentedit seems to be still true in the last stable release...
Comment #2
vthirteen commented[changed version by mistake - fixed it]
Comment #3
warmth commentedhow about porting the patch to the 7 version? Please, it's kinda urgent.
After applying this patch is needed this other: #1309680: Spanish format doesn't work properly
Is this patch going to be committed?
Comment #4
warmth commentedGuys why did you release a new version without fixing this?