Hi all

This might be a duplicate of all other rules flag problem. I would like to have the reaction Node is flagged in the 8 version.

Comments

Marcus 78 created an issue. See original summary.

Marcus 78’s picture

My bad its under after saving new flagging.

Marcus 78’s picture

Status: Active » Fixed
socketwench’s picture

Status: Fixed » Closed (duplicate)

It happens!

SuperStes’s picture

Hey Marcus, I am having the same kind of trouble. I was used to Drupal 7 where I could start a rule on the event of a node being flagged.

Now in Drupal 8, I am lost... What I want to do is quite simple in itself: when a node is flagged, I want to fill a field of that node with a certain fixed value.

* I got the rule started with "after saving new flagging". If I take only this event and use a "display message" as an action, the rules works and the message is displayed.

* If I add a condition "entity is of bundle" to specify the flag, the rule still works, the message is still displayed.

* Even if I add an action "set a date value" and I choose "flagging.flagged_entity.entity.title.value" as data, I can set the title of the node to whatever I want.

I cannot, however, select the field I wanna fill... I know I have to add a condition "entity is of bundle" first, but it does not work. Whenever I try to do so and pick "flagging.flagged_entity" in the data selector, I get an error page after saving the condition...

Is this a bug? Or am I doing something wrong??

SuperStes’s picture

Status: Closed (duplicate) » Active