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. :-(
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | comment-table.diff | 1.21 KB | mooffie |
Comments
Comment #1
mooffie commentedIt 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.)
Comment #2
mooffie commentedCommitted.
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.
Comment #3
mooffie commented(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.)
Comment #4
itangalo commentedPatch 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.)