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.
If you publish a node with workbench moderation and then create a new draft, token replacements are not updated with the latest form submission values as you subsequently edit the new draft.
This appears to be down to metatag_entity_view() reloading the entity. The block of code was originally in a hook_field_attach_view_alter() function which may well have needed that, but I can't see any need for it now that's been replaced with a hook_entity_view() implementation.
Comment | File | Size | Author |
---|---|---|---|
#10 | metatag-n2199533-10.patch | 897 bytes | mairi |
#6 | metatag-n2199533-6.patch | 895 bytes | DamienMcKenna |
Comments
Comment #1
Adrian Richardson CreditAttribution: Adrian Richardson commentedPatch attached for review
Comment #2
Adrian Richardson CreditAttribution: Adrian Richardson commentedComment #5
jeffdiecks CreditAttribution: jeffdiecks commentedComment #6
DamienMcKennaRerolled. Note: this needs some solid reviewing.
Comment #7
DamienMcKennaComment #8
rooby CreditAttribution: rooby commentedI had a problem that sounded similar to this one but the patch didn't fix it so I opened a new issue #2467587: Problem with Workbench Moderation and Metatag caching.
If that is actually a duplicate I can close it.
Comment #9
DamienMcKennaCan someone please test if the current -dev release fixes this problem?
Comment #10
mairi CreditAttribution: mairi commentedThe current -dev release doesn't fix this problem for us.
Attaching re-rolled patch for metatag latest version (no changes, just re-rolled for line numbers).
Comment #11
DamienMcKennaCommitted.
Comment #13
DamienMcKennaFYI this has been released in the new v7.x-1.7.