Closed (fixed)
Project:
Phone
Version:
5.x-2.9
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
12 Mar 2008 at 08:56 UTC
Updated:
11 Jun 2008 at 23:41 UTC
When you use the UK/British phone code, when drupal formats the phone number, it returns the array twice.
This means your HTML will start with array(+44 00...) etc.
To fix this bug, edit the last lines of phone_uk_inc to read....
return $phonenumber;
}
}
The closing if / else brace was in the wrong place.
Comments
Comment #1
thierry_gd commentedTaken into account in 5.2.7 version
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
Ulti commentedHi, This isn't an issue at all, the first if just returns the function OR the else is evaluated. It makes no difference if the else is even there or not, as the code has either returned the function or gone on to evaluate the rest of the function block.
However, there is still an issue with a var_export still being present in the most recently downloaded version of this module (5.x-2.9). Which I reported previously and submitted a patch back in December 2007!!! http://drupal.org/node/194731#comment-654960 Could you please make the changes to the current release, at present anyone using a UK phone number is going to be scratching their head wondering what all the weird debug output is about.
Line #125 phone.uk.inc
Comment #4
Ulti commentedComment #5
thierry_gd commentedFixed in 5.2.11 version
Comment #6
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.