When a content type is set to only accept a single location, the module still wraps the fields inside an extra fieldset, which seems excessive. Here's what I did to fix it. On lines 693-703, add a condition check, to get:

    if ($location_form_count > 1) {
	  for ($index = 0; $index < $location_form_count; $index++) {
		$form['locations'][$index] = array_merge(
		  is_array($form['locations'][$index]) ? $form['locations'][$index] : array(),
		  array(
			'#type' => 'fieldset',
			'#title' => t('Location #%number', array('%number' => $index + 1)),
			'#tree' => TRUE,
			'#attributes' => array('class' => 'location')
		  )
		);
	  }
    }

Comments

bdragon’s picture

Status: Active » Closed (duplicate)

Marking as duplicate of http://drupal.org/node/160443.

Please follow up there.

Thanks!
--Bdragon