I installed the GMap and Locaiton modules on Drupal 6.5. I configured a content type and enabled Location for it. Checked the the "Add another location" feature should be available in the node's body. I have set the "Add another location" for this type to 100. No matter what settings I try, every time I try to add a new location this way, I get the following erorr message:
"You don't have permission to add a location to this node, or the node has the maximum number of locations already."

The strange thing is that if I "edit" the node, I can add as many locations as I need. So why is the "Add another location" link not working?

Comments

bdragon’s picture

Probabaly because I don't test very often with it on. ;)

Looking into it.

bdragon’s picture

OK, it seems I didn't finish porting location_addanother, and had some D5-isms in the form handling code. Will have a fix shortly.

bdragon’s picture

Status: Active » Fixed

OK, fixed.

http://drupal.org/cvs?commit=148559

For a quick fix against RC2, you need to change three lines, like so:

function location_addanother_form(&$form_state, &$node) {
function location_addanother_form_validate($form, &$form_state, $form_id) {
  $location = $form_state['values']['location'];
kirilius’s picture

Thanks!

Anonymous’s picture

Status: Fixed » Closed (fixed)

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