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.
Hello, when Iv tried to bulk update fields of certain content type with text and token ( [node:title] review) all nodes recieved the same field value that is correct only for the first one. Is there something Iv missed in configuration ? And one more question - can the token replacement be disabled for such action ? Thanks
Comments
Comment #1
damiankloip CreditAttribution: damiankloip commentedI can confirm this one too, It will basically only do the proper token replacement on the first entity of each bundle type. So if you have two page nodes and two article nodes selected, the pages will have the first of the page token replacement, and likewise for the articles. There is something going on in views_bulk_operations_modify_action but I'm not sure exactly what yet ....
Comment #2
bojanz CreditAttribution: bojanz commentedPushed a fix.
Bad references!
Comment #3
damiankloip CreditAttribution: damiankloip commentedYep, that's what I saw this morning, then made a patch... the $pseudo_entity was getting passed by reference and the token overwritten right? Then I saw your 2 posts! already taken care of :)
edit: Just looked at the commit diff, that's exactly what I had anyway.