The trigger actions are wrongly executed.
If you check in the trigger_assignemts table then you realize than flag hooks are flag with action flag and unflag.
But when you are triggering the actions the code is triggering 'flag', 'unflag', 'flag_$flag->name', 'unflag_$flag->name', that don't exist as you check when running the _trigger_get_hook_aids() function.
There is only generic flag trigger actions with the type of flag in the $context, if you try to create a Drupal actions with flags at hand you will realize about this.
This was causing that flag activities with unflag were not working ( as it was my case).
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | trigger.diff | 1.29 KB | mooffie |
| flag_actions.patch | 867 bytes | jcmarco |
Comments
Comment #1
mooffie commentedIndeed, the Trigger intergration is completely botched.
There are two problems:
Without both these fixes, our Trigger support doesn't work at all. How have this happened? I wonder.
I'm about to commit the following patch.
Comment #2
mooffie commentedI see that Flag 1.x too has this bug. But I'm going to fix only 2.x.
Comment #3
mooffie commentedCommitted.
http://drupal.org/cvs?commit=454536
The D7 fix may involve more than a straight port, so I'll do this at #947392: D7: Make Actions/Trigger work.