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.
The function fieldactions_send_email_to_email_action creates a dblog entry of 'Sent email to %node_owner_mail', when it should be the email address entered into an email widget field.
So in line 523,
if (drupal_mail('fieldactions_general', 'fieldactions_mail_to_email', $field_value['email'], $language, $params, $from, TRUE)) {
watchdog('fieldactions', 'Sent email to %recipient', array('%recipient' => $vars['%node_owner_mail']));
}
else {
watchdog('error', 'Unable to send email to %recipient', array('%recipient' => $vars['%node_owner_mail']));
}
should be changed to
if (drupal_mail('fieldactions_general', 'fieldactions_mail_to_email', $field_value['email'], $language, $params, $from, TRUE)) {
watchdog('fieldactions', 'Sent email to %recipient', array('%recipient' => $field_value['email']));
}
else {
watchdog('error', 'Unable to send email to %recipient', array('%recipient' => $field_value['email']));
}
Comment | File | Size | Author |
---|---|---|---|
#1 | fieldactions-547062-1.patch | 828 bytes | jajathejazzcat |
Comments
Comment #1
jajathejazzcat CreditAttribution: jajathejazzcat commentedHere is a patch.
Comment #2
deekayen CreditAttribution: deekayen commentedcommitted to HEAD and DRUPAL-6--1