When you publish a new post, and rules has been activated to notifie the assingd user, it throuws out the following error:
warning: Invalid argument supplied for foreach() in ..../sites/all/modules/to_do/to_do_rules.module on line 7.

Comments

AlexisWilke’s picture

Do you assign the To Do task to anyone?

It looks like the array of assigned user would not be defined...

Thank you.
Alexis Wilke

demon326’s picture

Hello Alex,

Yes in matter of fact i did assigned it to 1 user only, lets say 'user A' , the content type does not get published, maybe thats one of the reasons? Thanks for the great module, very useful :)

AlexisWilke’s picture

demon326,

Well... if it doesn't get published it's probably not that useful! 8-)

Did you try without the Rules extension? Does it work in that case? I'll test, my idea would be that the rules functions are called to see on creation. I'm pretty sure I tested that when I implemented it, but something may have changed.

Thank you.
Alexis

demon326’s picture

AlexisWilke ,

I can create the node, it gets submitted, but drupal just spits out that error when the node got created.. I also don't publish those kind of nodes because there only meant to bee seen by the moderators and assigned users.

You can see the error here; http://www.plaatjesdump.nl/upload/59ebfaea7caec6a8d74109f002486455.jpg its just that i want to inform a user that he got a task to do :)

AlexisWilke’s picture

Hmmm...

Really strange. I don't see anything in the To Do Rules that would actually be triggered on a Save when creating a new node. Could you tell me what rules you're using exactly? (trigger, conditions, actions)

Thank you.
Alexis

demon326’s picture

Hi Alex,

Here is the export;
http://pastebin.com/5WeizBER

And here is a screen of the rule settings:
http://www.plaatjesdump.nl/upload/72fe5ad9b25e06494ef7f93cae2cb017.jpg

i just notice i forgot to mention that i triger the rule when it started(i always set it to started)

AlexisWilke’s picture

Well... I'm still not able to reproduce the problem. I'm not getting any emails or errors when I create a new To Do in Started mode. I do get the emails as expected when clicking the button from Not Started to Started mode though.

Otherwise, from what I recall, the access all to do content is what you should use to avoid having the wrong people have a look at the To Do pages. I think that will work better for you than creating unpublished To Do items (because the module expects the nodes to be published and makes some sanity checks against the status flag.)

Thank you.
Alexis Wilke

demon326’s picture

Status: Active » Closed (works as designed)

Alexis,

No problem, its not a game breaking error, so i'll change the status to "closed (works as designed)"