Closed (fixed)
Project:
Address Field
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Jul 2012 at 04:10 UTC
Updated:
16 May 2013 at 13:50 UTC
Jump to comment: Most recent file
Comments
Comment #1
andyg5000Patches for either solution preferred attached
Comment #2
rooby commentedMarked #1664378: Notice: Undefined index: mode in addressfield_format_address_generate() (line 357 of address.inc) as duplicate of this issue.
Comment #3
socialnicheguru commentederror in 1678800-require_context_array.patch
PHP Parse error: syntax error, unexpected T_BOOLEAN_AND, expecting ',' or ')' in /var/aegir/platforms/7/modules/all/addressfield/addressfield.module on line 127
Comment #4
hass commentedComment #5
rszrama commentedGood find, Andy. It looks like the intent of the function was to default to 'render' if a valid mode wasn't given. Since I'm hesitant to change the function signature without really knowing how many other modules that might break, I'm just going to update the docs for the function and initialize the mode in the context array if it isn't present. I've also made the if ... else statement explicitly check for the 'render' mode.
Commit: http://drupalcode.org/project/addressfield.git/commitdiff/fc2ef44