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.
Simple localized one-liner patch attached which fixes this.
Comment | File | Size | Author |
---|---|---|---|
#6 | bug38849_0.patch | 412 bytes | Wesley Tanaka |
#5 | bug38849.patch | 414 bytes | Wesley Tanaka |
#3 | 38849.patch | 450 bytes | Wesley Tanaka |
disabled-comments-also-shows-closed-icon.patch | 371 bytes | Wesley Tanaka | |
Comments
Comment #1
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedsorry if the patch doesn't apply automatically properly -- I edited out the irrelevant parts of a much larger diff and saved that edit job as this patch file.
Comment #2
Dries CreditAttribution: Dries commentedThat code should probably use the new comment.module directives.
Comment #3
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedWhat does that mean? I'm pretty unfamiliar with the codebase.
My one guess is that you mean it should be using these defined constants instead of 0 and 1:
Patch applied to do that. Uses defined() to test if COMMENT_NODE_DISABLED has been set.
Comment #4
chx CreditAttribution: chx commentedno need to check whether the constant is defined, forum does not work without comment.
And if "I'm pretty unfamiliar with the codebase" then please do not set ready to be commited for yourself, let others review your patch. (I sometimes set this for my own patches because I am too unpatient but that's definitely not good practice)
Thanks for your activity.
Comment #5
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedThanks for the pointer on process.
I believe that the constant should be checked for, but anyway here's another patch without the check. I changed '==' to '===' to try to help mitigate this extra assumption.
Comment #6
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedOops, I thought I had tested the === condition, but it was actually a cached page I was looking at (drupal's caching behavior still confuses me a bit).
This time it works.
Comment #7
Wesley Tanaka CreditAttribution: Wesley Tanaka commentedso is this code okay?
Comment #8
Dries CreditAttribution: Dries commentedLooks perfect. Committed to HEAD. Thanks.
Comment #9
Dries CreditAttribution: Dries commentedComment #10
(not verified) CreditAttribution: commented