Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: 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 CreditAttribution: 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.