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.
Hi there!
Just tested the autocomplete widget inside a multigroup and it seems to work fine,
but i noticed that the node has to submitted twice to remove a term from the term_node table.
It looks like that taxonomy_node_save doesn't get called the first time.
I tried to set a update switch on the hook_field to solve the problem, but didn't get it working yet.
Not shure if this is the right way to get it working...
Comments
Comment #1
mh86 CreditAttribution: mh86 commentedHi!
I tested the multigroup feature as you described and encountered the same problems. The problem was, that the term wasn't removed from the node field array, instead it got an additional entry with '_remove' => 1. I fixed this issue by checking, if a term has the entry _remove set to 1 and committed the changes!