Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have a content type with Field Collection of status log. What I want is:
Event: User clicks a button
Action:
- add a new status (in Field Collection)
- update a regular field in this host entity
I put adding a new status in a component. Tested the component, works great.
When I construct the rule, if I just add a new record in the Field Collection, works fine. BUT, when I put both tasks in the rule, the "Add a new status" task won't work anymore! Updating a regular field works fine.
Other notes:
- If I add other type actions, like sending email, to the rule, they wouldn't impact the Field Collection action. Only when I want to update a regular field in the host entity, problem occurs.
- I tried "Entity has field" and "Content is of type", including checking whether the data is passed over. Everything works fine,
but as long as I have an action to update a regular field in the entity host, then adding new record in Field Collection will not work anymore.
I'd appreciate any advice...
Comments