We started getting reports of comment sorting issues, and found that a patch was added to 7.x-3.23 for comment id: https://www.drupal.org/project/views/issues/2219937

There are two serious problems with this patch:

1) There already exists a $data['comment']['id'] earlier in the same code!

First: https://git.drupalcode.org/project/views/blob/7.x-3.x/modules/comment.vi...
Second: https://git.drupalcode.org/project/views/blob/7.x-3.x/modules/comment.vi...

2) The second one doesn't have sorting by comment ID, which causes it to remove comment ID sort from any view that has it.

If the issue @jenlampton had in #2219937 was due to using different handlers for cid, that should be addressed separately. The first one uses views_handler_field_comment and the second uses views_handler_filter_numeric (but also has removed the ability to sort).

See the attached patch, thanks.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ron_s created an issue. See original summary.

KimNyholm’s picture

I can confirm that #2219937 breaks comment sorting.
However I can't apply above patch. Is it a valid patch format?
I have attached a fresh patch without mail header.

KimNyholm’s picture

Updated patch to use module repo and changed issue number in name.

ron_s’s picture

Yes, it's definitely a valid format using git format-patch.

  • DamienMcKenna committed 39d3ca6 on 7.x-3.x authored by ron_s
    Issue #3061720 by KimNyholm, ron_s: Rollback of patch #2219937 for...
DamienMcKenna’s picture

Status: Needs review » Fixed
Parent issue: » #3054023: Plan for Views 7.x-3.24 release

Committed. Thank you.

Status: Fixed » Closed (fixed)

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