I have a rule that results in logging a heartbeat activity. One of the variables comes from an entity. Rules automatically wraps the variable in an EntityValueWrapper and this makes its way to rules_action_heartbeat_activity_log(), which does not properly unwrap the EntityValueWrapper. This leads to activity messages such as "Property name liked Property name".

This sounds related to #1522100: Flags property not showing properly

I expect this is a problem for any variables based on custom entities.

I think the solution involves checking whether each variable is an EntityValueWrapper and, if it is, unwrapping it.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jdleonard’s picture

Version: 7.x-1.0-beta1 » 7.x-1.0
jdleonard’s picture

Status: Active » Needs review
FileSize
669 bytes

This patch fixes this behavior for me.

jdleonard’s picture

Version: 7.x-1.0 » 7.x-1.x-dev
Status: Needs review » Closed (cannot reproduce)

This appears to be fixed in the dev release :)