The query in uc_order_history() omits the order_status column. In the use case that calls uc_order_actions(), the latter is expecting the $order object to have an order_status property when it calls uc_order_status_data().
PHP does not generate an error and the code in uc_order_actions() "works" but likely for the wrong reason.
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 1283984-uc_order.admin_.patch | 1.51 KB | solotandem |
| #1 | uc_order.admin_.patch | 1.52 KB | solotandem |
Comments
Comment #1
solotandem commentedAttached patch adds the order_status column to the query.
Comment #2
longwaveDoesn't order_status then need to appear in the GROUP BY clause as well?
Comment #3
solotandem commentedIt does on PostgreSQL, but not MySQL. Good catch. I added it to the patch.
Comment #4
longwaveComment #5
longwaveCommitted, thanks. Already fixed in 7.x.