Member of Group condition not working for new nodes.

Events happening in the community are now at Drupal community events on www.drupal.org.
Anonymous's picture

I took a look through the rules group, but wasn't able to find anything relevant to my question. . .

I'm trying to make a rule to publish content if the user has the role "editor" for and is the member of the group the content is in.

It works fine when the user is editing a piece of content (node), but when creating a new piece of content, the "member of group" part of the test fails. From the code in "og.rules.inc", it looks like the test is failing because the node doesn't have a node id yet, but the content should know what groups it's in before that, right?

Is there something I'm missing? Or a better way to do this?

Comments

Multi-step solution

fathershawn's picture

I seem to remember that Rules can redirect to a node tab after a save. Perhaps you could solve this problem with some multi-step logic:

If content is new and content is being saved, set to "unpublished", redirect after save to publishing tab.

Now the user can set the publishing status and your rule for updated content will fire...

Drupaling in NYC since 2009!

Rules

Group organizers

Group categories

Categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: