If a node has a Rules-based (automatic) moderation-state change that is triggered by manual moderation-state change, the automated change appears below the manual change on the Moderate tab for that node. This is inconsistent with the standard ordering of events on the page; chronological dexcending. E.g.

Both events get recorded into the workbench_moderation_node_history table with the same timestamp, REQUEST_TIME; see from line 1482 in workbench_moderation_moderate() in workbench_moderation.module. This is good practice and should not change.
The attached patch fixes the bug by adding an additional sort order to the query that gets the node's workbench_moderation_node_history table data to ORDER BY hid DESC.
| Comment | File | Size | Author |
|---|---|---|---|
| history-event-order.patch | 486 bytes | Bevan | |
| Example.png | 69.69 KB | Bevan |
Comments
Comment #1
dave reidMakes complete sense to me.
Comment #2
dave reidCommitted to 7.x-1.x. Thanks!
http://drupalcode.org/project/workbench_moderation.git/commit/6bdb20e
Comment #3
Bevan commentedThanks for the quick turnaround! :)