Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
16 Oct 2006 at 08:48 UTC
Updated:
3 Jan 2007 at 05:46 UTC
Jump to comment: Most recent file
Comments
Comment #1
ChrisKennedy commentedSorry, attaching the patch with -F^f included.
Comment #2
merlinofchaos commentedI think the problem was that it needs to be on the node_comment_statistics table in views_comment.inc not on node. THen you don't even have to ensure table.
Otherwise...it actually seemed to work ok for me without any changes.
I'm not committing this, though; it's incomplete. It needs fields and filters.
Comment #3
ChrisKennedy commentedI took a stab and reimplementing it but wasn't able to get the basic field to work. Any advice would be much appreciated.
Here is the error I get when trying to view the last_changed field:
Even though I have set notafield to TRUE it's still showing up in the field list, and I can't get .changed from being listed either. Blegh.
Comment #4
merlinofchaos commentedThat's where the .changed is coming from. You should not need any addlfields at all.
Your filter and sort handlers are going to totally fail. notafield only applies to fields (for sort and filter it automatically has that behavior) but youre using Views default handlers which assume regular fields.
Your other problem may be a cached query. Be sure to clear your cache and resave the view. (I have the patch basically working, and since this is so close I may finish it today).
Comment #5
ChrisKennedy commentedYeah caching was messing me up. This version should work.
Comment #6
ChrisKennedy commentedComment #7
merlinofchaos commentedCommited. Thanks!
Comment #8
(not verified) commented