Closed (fixed)
Project:
Phone
Version:
master
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Jun 2010 at 14:11 UTC
Updated:
17 Jan 2011 at 15:20 UTC
The verification for dutch phone numbers generates an error. The call for the function preg_match uses a different syntax:
preg_match('/(?P<areacode>[0]{1}[6]{1})[-\s]+(?P<localnumber>[1-9]{1}[\s]*([0-9]{1}[\s]*){7})/', $phonenumber, $matches);
The two 'P's are added.
Comments
Comment #1
Marcel.de.Haas commentedThis occurs when the option is turned on to add the country prefix. You can submit the node when you add something like 033-1234567. This is converted to +31-33-1234567 which does not pass the check mechanism. When you add the zero again the check passes. I would like the field to be stored as entered and the parsing to occur on rendering.
Also the notation is not correct to the standard as defined by the Dutch Standards Association (NEN). For an excerpt see http://taaladvies.net/taal/advies/tekst/53/ (Dutch only)
Comment #2
oblomow commentedNo, this option was not turned on. And none of the phone numbers I tried was accepted. with or w/o country prefix. Only AFTER I changed the code as mention above I can get the phone numbers accepted.
Comment #3
mohit_aghera commentedHave you got any solutions for your problem which is mentioned above...
because i have the same problem
Comment #4
mohit_aghera commentedI have got solution by customizing some of the code:
Original code:
============================
My modified code:
I have removed variables areacode and local number form the original code.
And access others using the array index
Comment #5
thierry_gd commentedTaken into account in 6.2.18 release