The way eventrepeat works makes it likely that a new copy of a node is generated by some random user, often anonymous users. If you use modules that are supposed to do something on nodeapi(insert) depending on the user, these modules get confused.

For example, I use eventrepeat with the workfloe module and nodes generated by cron or some random visiting user will lose the workflow info of the first node in the epentrepeat sequence.

I suggest to introduce a special user and let eventrepeat switch to that user during eventrepear_render_nodes.

CommentFileSizeAuthor
#4 eventrepeat_user_switching.patch4.17 KBseanbfuller

Comments

killes@www.drop.org’s picture

I have the following patch applied to the 5.2 version. Should probably be backported to 5.1 if agreeable.

http://cvs.drupal.org/viewcvs/drupal/contributions/modules/eventrepeat/e...

killes@www.drop.org’s picture

Status: Active » Needs review
killes@www.drop.org’s picture

Version: master » 5.x-1.x-dev

mocing to right branch. The patch applies as is.

seanbfuller’s picture

Status: Needs review » Fixed
StatusFileSize
new4.17 KB

I went back in the history and rebuilt this patch as the link above is no longer working. Committed to 5.x-1.x. Patch I used is attached for historical purposes, etc.

Anonymous’s picture

Status: Fixed » Closed (fixed)