Closed (fixed)
Project:
Commerce Core
Version:
7.x-1.x-dev
Component:
Payment
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Apr 2012 at 17:50 UTC
Updated:
8 May 2012 at 18:00 UTC
Jump to comment: Most recent file
Commerce_payment.token.inc offers some tokens that require the order object, however, in some cases does not load the order, resulting in a couple of php notices.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1541076-2.patch | 550 bytes | amateescu |
| #1 | payment-order-token-1541076-1.patch | 2.18 KB | helior |
Comments
Comment #1
helior commentedPatch loads order in the correct scope, and checks for existence for order before offering tokens replacements.
Comment #2
amateescu commentedI don't think we should load the order object for all tokens because it's not really needed. I'd go with a simpler approach, like the patch attached :)
Comment #3
bojanz commented#2 looks good.
Comment #4
rszrama commentedYeah, I'll go with patch #2. It looks like the original bug was a copy / paste error, and #2 seems to nail it (and keeps the logic check on the proper entity's uid property).