When editing a node with a location element in the August 8 build of location-5.x-3.x-dev, at the very end of the location block the string "Array" is displayed. This didn't happen in the previous version I was using, from June 18. This only happens when an item is edited, not when a new item is created.

The problem seems to be the change in location_elements. With #input => TRUE, #value is set for the element when _location_expand_location is called. That function changes the element type to fieldset. When that fieldset is rendered in Drupal's core function theme_fieldset, that #value field is rendered as the string "Array".

Changing location_elements to #input => FALSE and removing #validate works around the problem.

Comments

bdragon’s picture

Status: Active » Fixed

Fixed in DRUPAL-5--3 and HEAD by implementing a theme stub to scrub #value instead of immediately punting to theme('fieldset').

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.