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.
Problem/Motivation
The revision log should represent an accurate log of which user updated the content at a given time. If a user moderates a piece of content via the moderation form, the revision author is not set so the revision log shows the author of the previous revision. This can be confusing if users are using the log to view moderation comments etc.
Proposed resolution
Set the revision uid in the submission handler
Remaining tasks
Write tests
Write code.
User interface changes
Real representation of user who actioned moderation in revision log.
API changes
None.
Data model changes
None.
Comments
Comment #2
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedComment #3
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedComment #4
acbramley CreditAttribution: acbramley at PreviousNext for Transport for NSW commentedComment #5
fenstratThis looks good and fixes the bug. There's a few unrelated documentation changes but they're all spot on. RTBC pending green on the test.
Comment #6
fenstratComment #7
drupal-son CreditAttribution: drupal-son commentedI can confirm the same issue.
It works as expected if the user edits the node and save and move to another state.
But when using the moderation form within the node, it uses the author of the previous revision.
Checking this patch and will provide feedback.
Thanks.
Comment #8
drupal-son CreditAttribution: drupal-son commentedConfirmed. Path fixed the issue.
Comment #10
larowlanfixed, thanks