I just tried implementing hook_receipt_filter, and discovered that it's rather useless as it simply get 2 NULL arguments.
Attached patch makes ec_receipt_checkout_init pass the transaction object, and fixes _ec_receipt_filter to pass it to the hook implementation, as it seems to be intended.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | 0001-689068-Fix-up-issues-related-to-the-receipt-filter.patch | 1.73 KB | gordon |
| receipt_filter.patch | 2.37 KB | xen |
Comments
Comment #1
gordon commentedsubmit for testing
Comment #3
gordon commentedmove to the dev branch for testing.
Comment #4
gordon commentedreceipt_filter.patch queued for re-testing.
Comment #5
gordon commentedUpdate to 6.x-4.x-dev
Comment #6
gordon commentedThanks, I have committed.