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.
But the node was being looked for in the wrong place
Function system_mail
line 1727 & 1728 currently read
if (isset($params['node'])) {
$node = $params['node'];
should read
if (isset($context['node'])) {
$node = $context['node'];
This means that when the workflow module sends a mail, the node variables such as %node_url are not replaced
Comments
Comment #1
Gábor HojtsyI am not sure your suggestion is right (did not check in detail), but retitling and moving to Drupal 7, so it can be looked at there and backported.
Comment #3
marcingy CreditAttribution: marcingy commentedThe implementation has change entirely in D7 and no processing of node is done there. Moving back to D6 as the issue seems specific to that version.