Closed (fixed)
Project:
Diff
Version:
2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2019 at 11:22 UTC
Updated:
16 Jun 2025 at 04:19 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
grimreaperHere is the patch.
Thanks for the review.
Comment #3
grimreaperComment #4
zarpele commentedI tested it and it works as expected.
Thanks for the patch
Comment #5
zarpele commentedWell, after a deeper test, the patch doesn't work when the user removed is the last editor on the revision list page.
Apparently Drupal keeps the revision user id even when a user was deleted.
My proposal/patch is to check if the object is available before trying to display the name.
Note: Patch #5 fails. I attached the correct one below (#6)
Comment #6
zarpele commentedComment #7
plopescPatch still applies and we have been using it in production sites for a while.
Would be great to have it merged.
Marking as RTBC.
Comment #8
acbramley commentedThanks for the work on this one. I've recently taken up maintainership of this project and am looking through the RTBC issues.
This fix looks good.
To get this in, I'll need an MR rebased against the latest 8.x-1.x code with tests added.
Thanks!
Comment #9
acbramley commentedComment #12
silvi.addweb commentedHello, I have raised MR for the same.
Comment #13
acbramley commentedDon't remove the tag if tests haven't been added please.
Comment #15
joshua1234511Fixed failing MR.
Added the Required Test.
Comment #16
acbramley commentedTests are failing.
Comment #17
acbramley commentedComment #22
acbramley commentedThanks for everyone's contributions to this, however i have taken the solution in a different direction.
The type, title and url keys on this array were completely unnecessary,
template_preprocess_usernamedoesn't use any of them. We can simply remove those lines to allow falling back to an Anonymous user display when the revision user is NULL. Also added much simpler test coverage using entity_testComment #23
acbramley commentedComment #25
acbramley commented