Revision 1.73 is throwing array_merge errors at line 496. If this line is commented out (turning off the validation function) - then another array_merge error appears at line 643.

Switching back to Revision 1.72 gives a working copy of location.module:
http://cvs.drupal.org/viewcvs/*checkout*/drupal/contributions/modules/lo...

Comments

TimDavies’s picture

I'm seeing this problem too...

I've got it working by changing line 496 to be:

$form['#validate'] = is_array($form['#validate']) ? array_merge($form['#validate'], array('location_node_settings_validate' => array())) : array('location_node_settings_validate' => array());

and by changing 643 to be:

     '#attributes' => is_array($form['locations']['#attributes']) ? array_merge($form['locations']['#attributes'], array('class' => 'locations')) :  array('class' => 'locations'),

This gets the location forms working as far as I can see - but I'm not sure what else it breaks....

TimDavies’s picture

Ok - it breaks most of it so it seems...

ankur’s picture

Status: Active » Fixed

This issue should be fixed by the most recent commit. If it's not, please reopen this issue.

Anonymous’s picture

Status: Fixed » Closed (fixed)