I am using the rule "After updating an existing field collection item" in order to find which field collection was updated in a node.

I have multiple field collections in a node type and a rule for each one to check if updated and to send an email.

For some reason all the field collections are seen as updated even with no modification on their fields.

I can check the updated field collection with the field collection name but it doesn't matter as all are updated (I checked by creating a simple rule with "After updating an existing field collection item" and printed a system message with the collection name).

Any help, ideas on this one ? The long hack is to check each / some field in the field collection, but that is not what I want.

Comments

mitchell’s picture

Project: Rules » Field collection
Version: 7.x-2.0 » 7.x-1.0-beta4
Component: Rules Engine » Code
Category: bug » support
Priority: Major » Normal

This doesn't appear to be a bug, maybe a feature request, but I'm not very familiar with Field Collection.

jmuzz’s picture

Issue summary: View changes
Status: Active » Fixed

The field collection items in a node will all be saved whenever its host is saved so it would trigger any actions and hooks associated with that. There's no built in way that determines whether or not the data in them actually changed, so the 'long hack' you don't want to do will be the only way.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.