In comment.module, there is a preprocess function which incorrectly sets the class of a link as a string. Should be an array. This was exposed when I wrote a custom module to handle comment_uri differently.

The attached patch fixes the bug by wrapping the "permalink" into an array.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, comment.module.preprocess_bug.patch, failed testing.

nicholasThompson’s picture

Version: 7.0 » 7.x-dev
FileSize
880 bytes

Ok - trying again against HEAD, at it appears there is no DRUPAL-7--1 branch yet... and the bug still exists in HEAD.

nicholasThompson’s picture

Status: Needs work » Needs review

Need review

dixon_’s picture

Version: 7.x-dev » 8.x-dev
webflo’s picture

Re-roll against 8.x-dev.

Wim Leers’s picture

Status: Needs review » Needs work

The last submitted patch, 5: comment-permalink-class-1027936-5.patch, failed testing.

webflo’s picture

Issue summary: View changes
Status: Needs work » Needs review
FileSize
734 bytes

Re-roll.

Wim Leers’s picture

Status: Needs review » Reviewed & tested by the community

I'd almost award the trivial patch of the month award :)

RTBC!

xjm’s picture

catch’s picture

Status: Reviewed & tested by the community » Fixed

Committed/pushed to 8.x, thanks!

David_Rothstein’s picture

Version: 8.x-dev » 7.x-dev
Status: Fixed » Patch (to be ported)
Issue tags: +Needs backport to D7

Needs backport, but there's more discussion at #1200478: Changing the comment path to the node path triggers a PHP fatal error in l() due to wrongly structured options (which also considered tests).

One or the other issue should probably be closed.

pounard’s picture

Note that there is working patches there! All there is to do is to grab and commit them (might need reroll though).

pounard’s picture

Issue is opened there since 2011 and I'm personally experiencing it on two projects since 2012, it's more than ever time to commit this fix, it's sad being forced to use a patch on all projects for such a trivial fix and old bug.

drumm’s picture

Version: 7.x-dev » 8.x-dev
Status: Patch (to be ported) » Fixed
Issue tags: -Needs backport to D7

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.