Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Nov 2011 at 12:46 UTC
Updated:
17 May 2013 at 19:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
mrfelton commentedComment #2
helior commentedIn what scenario/configuration are you encountering this? I suppose someone could create a format plugin to unset the country #options, but they're just asking for trouble ;)
Nonetheless, I can't think of a good reason not to include this.
Comment #3
scalp commentedCan confirm that this patch resolves the error. Thank you mrfelton.
Comment #4
zxaos commentedI'm seeing this issue when displaying a content type with an addressfield in views, using a views attachment, in HTML List style, displaying a custom display type created with Display Suite. The field's display options are set to "Hide the country when only one is available". In the edit form, the "Address form (country-specific)" setting is also checked.
Comment #5
rszrama commentedHah, I finally figured out how to reproduce the notice. These fields must have been configured to not show an address and hide the country. Since they aren't building the format for an address, though, there's no reason to select the box to hide the country. For the folks seeing this notice, you just have a weird configuration. : P
Still, since we don't have plugin dependencies, I'll go ahead and make it conditional.
Commit: http://drupalcode.org/project/addressfield.git/commitdiff/7a8e1a4