#221 Custom Fields in functions_mail.inc

Future_Requests
closed
nobody
None
5
2012-08-01
2011-06-23
Anonymous
No

I found this bug a few days ago and my memory is a little fuzzy, so pardon me if I'm not 100% accurate.

On line 592 of function_mail.inc:

For some reason the $data variable is populated a different way when deleting an event, and thus this section of the code does not display the custom fields when sending email.

adding the following to line 593 fixed it for me. I'm sure there's a more elegant solution.
...
591 $key = $field['name'];
592 $value = (isset($data['custom_fields'][$key])) ? $data['custom_fields'][$key] : '';
593 $value = (isset($data[$key])) ? $data[$key] : '';
...

-Shane

Discussion

  • John Beranek
    John Beranek
    2012-08-01

    This area of code has changed quite a lot, so hopefully your problem is fixed. Otherwise the patch is out of date

    • status: open --> closed
    • milestone: --> Future_Requests
     


Anonymous


Cancel   Add attachments