If I add my repeating event information and my location information (using the location module) when I create the event, everything is great.

But if I add repeat information to an existing (non-repeating) event that has location information, the location information is not being copied to the newly created event nodes (i.e. no new entries are made to the location table).

Thank you for a great module!

Comments

bottdev’s picture

As a follow-up, I was able to get it working for my purposes by adding the following line of code in eventrepeat.module in the _eventrepeat_render_nodes function:
unset($repeat_data->locations[0]['lid']);
I put it in right after:

          //unset nid to trigger new node insertion
          unset($repeat_data->nid);

This new line of code will remove the location id thus causing a new record to be inserted into the location table for the new node.

Of course for a patch, one would need to verify if the location module was included and also check for all the possible locations for the node. I have the only one location allowed per event, so this quick fix works for me.

I hope this helps.

seanbfuller’s picture

Thanks bottdev, I'll take a look and try to get a fix in the next day or so.

rmiddle’s picture

Status: Active » Fixed

4.7 Branch is being moved to unsupported. If this is still an issue with 5.x-1.x or 5.x-2.x please reopen.

Thanks
Robert

Status: Fixed » Closed (fixed)

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