The relationship to comment flags appears to be broken – the user flags and node flags appear, but no comment flags.

Steps to reproduce:
* Install Drupal 7.0 and Flag 2.0-dev (as of 2011-01-11)
* Create a new flag, for comments
* Create a new view, based on comments
* Add new relationship -> no comment flag appears

The same thing happens if view is based on nodes instead of nodes. :-(

CommentFileSizeAuthor
#1 comment-table.diff1.21 KBmooffie

Comments

mooffie’s picture

Status: Active » Needs review
StatusFileSize
new1.21 KB

It turns out in D7 they renamed the table {comments} to {comment}: #335086: Rename node, filter and comment modules tables to singular

Here's a patch.

(You must clear Drupal's cache after applying the patch.)

mooffie’s picture

Title: Comment flag relationships in Views is broken » D7: Table {comments} renamed to {comment}
Status: Needs review » Fixed

Committed.
http://drupal.org/cvs?commit=479146

Notes:
- The fix will be reflected in the "dev" release in a few hours only.
- Remember to clear Drupal's cache after upgrading the module.

mooffie’s picture

(And please let me know if you see, or don't see, other glaring problems in Flag for D7: we need to release a new beta asap.)

itangalo’s picture

Patch tested, worked just fine.

The quick response is appreciated and impressive. Count on me reporting other issues that I find in Flag for D7 – but I have been using it quite a bit in Drupal training the last few days, and so far this was the only glitch I have found.
(I can also point out that Flag is the only non-core module I've seen so far that finished implementing relationships in Views for D7. Respect.)

Status: Fixed » Closed (fixed)

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