Closed (fixed)
Project:
Address Field Phone
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Jun 2015 at 21:21 UTC
Updated:
29 Apr 2016 at 23:58 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
antonnaviHad the same issue.
Patch addressfield_phone.patch fix it and works fine for me.
Thank You Tim Bozeman!
Comment #2
vikramy commentedThe above patch works great. Thank you Tim Bozeman.
Comment #3
jedihe commentedI was getting some notices even after I applied the patch from Tim Bozeman. Updated it to ensure proper defaults are set in any case.
Comment #4
tim bozeman commentedComment #5
jedihe commentedUpdating patch to prevent some more notices.
Comment #6
jcisio commentedThe isset() first won't work because when an option is unchecked, the array key is still there with value "0". Here is another patch. It also fixes unnecessary variable declaration in the Views handle too.
Comment #7
jcisio commentedComment #9
tim bozeman commentedNeat + array thing! Never seen that before.
Comment #11
rickj commentedThere's as minor coding error in #6 which results in this error:
Notice: Undefined index: fax in addressfield_format_phone_generate()
Line 69 of the patched file is missing an isset(), should be:
Comment #12
neograph734Reopening as per #11.
This is issue is linked from #2481897: Undefined index in addressfield_format_phone_generate() and the problem is not yet (fully) resolved.
Comment #13
neograph734Patch for solution offered in #11.
Comment #14
neograph734Argh, this has gotten kinda scatterd... There is already a patch in #2689889: Error in line 69. Reverting this issue.