1 reply [Last post]
hinrichsislcocom's picture
Offline
Bug Finder
Joined: 05/28/2008
Juice: 92
Was this information Helpful?

The email on order submission ('New Order at...') sent by uc_order_mail() always says 'n/a' as the message body even when the template is set to 'customer.'

The message body is ok until it is processed at this line:
$message['body'] = check_markup($body, $params['format']);

The problem is that this line in check_markup($text, $format = FILTER_FORMAT_DEFAULT, $check = TRUE) is returning false:
if (isset($text) && (!$check || filter_access($format))) {

This is because the permissions check on filter 2 (full html) is returning false.

Solution:?
My guess is that the function should be called (on uc_order.module line 498)with false in the 3d parameter to avoid the permission check:

$message['body'] = check_markup($body, $params['format'], false);

cheers

Bob Hinrichs
ISL Consulting
http://www.islco.com

Ryan's picture
Offline
Joined: 08/07/2007
Juice: 15438
Re: 6.x-2.x-dev: Order confirm invoice says 'n/a' (With FIX)

I think Lyle committed a fix for this yesterday. (Yep, just found it in revision 1310.) Thanks for the report, tho!