Admin Email Alert has customer comment twice
Posted: Mon Sep 26, 2016 1:11 am
I'm getting customer comments listed twice in the admin email. Once with nl2br applied and once without.
Seems to be caused by line 669,
$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment']; ,
in catalog/model/checkout/order.php
I've searched but can't find this bug listed anywhere which I'm very surprised at.
Seems to be caused by line 669,
$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment']; ,
in catalog/model/checkout/order.php
Code: Select all
if ($comment) {
if ($order_info['comment']) {
$data['comment'] = nl2br($comment) . '<br/><br/>' . $order_info['comment'];
} else {
$data['comment'] = nl2br($comment);
}
} else {
if ($order_info['comment']) {
$data['comment'] = $order_info['comment'];
} else {
$data['comment'] = '';
}
}