// fix issue on update of orders row
This commit is contained in:
1 parent
01846fa9b4
commit
196cc811fe
1 file changed
+9
@@ -1 +1,10 @@
|
|||||||
SET NAMES 'utf8';
|
SET NAMES 'utf8';
|
||||||
|
|
||||||
|
UPDATE `PREFIX_orders` o
|
||||||
|
SET o.`current_state` = (
|
||||||
|
SELECT oh.`id_order_state`
|
||||||
|
FROM `PREFIX_order_history` oh
|
||||||
|
WHERE oh.`id_order` = o.`id_order`
|
||||||
|
ORDER BY oh.`date_add` DESC
|
||||||
|
LIMIT 1
|
||||||
|
)
|
||||||
Reference in new issue
Block a user