Active
Project:
e-Commerce
Version:
5.x-3.5
Component:
coupon
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
20 Dec 2008 at 04:49 UTC
Updated:
20 Dec 2008 at 04:49 UTC
In coupon.module,v 1.6.2.2.2.8.2.15 2007/10/16 03:30:30 sammys Exp $
between lines 595 and 596 needs to be added $txn = (object) $object;
591 function coupon_token_values($type, $object = NULL) {
592 $values = FALSE;
593
594 if ($type == ECMAIL_TYPE_COUPON) {
595 $values = store_token_values(STORE_TOKEN_TYPE, $object);
+++ $txn = (object) $object;
596 $values['coupon-number'] = _coupon_format($txn->coupon['coupon']);
597 $values['coupon-discount'] = payment_format($txn->coupon['operand']);
598 }
599
600 return $values;
601 }