What is the reason in having Message ID as select list in Rules action when you already selected the template from Rules action select list?
This has confused me today.

I wanted to set a message when a certain node type is created.
So, I cloned the heartbeat_add_node template and made my changes.
Then I cloned the 'Log activity for a new node being published'. Set node type in condition.
Then I thought it is just a matter of changing the Message ID in the 'Log activity for User adds a node, save user activity'. I was wrong. Rules work, but no message is logged.

I had to remove that action and add the action for the template I cloned/created.

Seems like having Message ID as a select list can lead to confusion like this. I don't see any other use for it being there.

Just a heads-up.

Also, clear cache before adding newly created template as action, otherwise it throws an error template not found.

Comments

Stalski’s picture

Status: Active » Needs work

At the time of writing, I did not find a way to easy set the message id in the logging as I did not have the correct variables to retrieve the message id.
However, I don't like that approach either, so I promise to look into again.