Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.x-dev
Component:
comment data
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
27 Sep 2011 at 15:36 UTC
Updated:
26 Jun 2012 at 22:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
bojanz commentedRetitling issue. We can't just send around fake entities. It causes trouble.
In #1172970: provide a unified way to retrieve result entities we added code that deals with this, and converted the node links to use it.
Now we need to do the same for comments, users, and taxonomy terms.
I think we should also have views_handler_field_entity_link that extends views_handler_field_entity, and then base all other link fields on that, so that we don't need to duplicate the:
code that we have in views_handler_field_node_link, views_handler_field_comment_link, etc..
Comment #2
donquixote commentedUntil then, can we not just comment_load() to fix the bug?
After all, comment_load() is cached, so we don't lose much.
Works for me..
Comment #3
slashrsm commentedYou can still have a lot of overhead.....
Agree to fix this ASAP, though.
Comment #4
donquixote commentedYup. But as I understand #1, the plan is to load the entity anyway?
How can you check access, without loading the entity? I know this used to work in D6 with nodes, but does it work with entities?
Comment #5
dawehnerHere is a small patch
Comment #6
jtse commentedI get the following errors when applying dereine's patch. Also, Views 3.1 is out so re-rolling the patch may be necessary.
Comment #7
dawehnerThanks for the feedback, will try a bit later.
Comment #8
dealancer commentedI am having same erros as mentioned in comment #6 when applying patch from comment #5.
@derine, was this patch commited in views 7.x-3.1? If not, it looks like you mixed files when was making a diff.
BTW, here is another patch, which is temporary for me. Dot not use it, it could cause a performance issue, because of loading node entity.
Comment #9
dawehnerI really like this kind of question, ... please read the comments :)
The patch still applies without problems so i guess you got confused by the diff format.
Comment #10
dawehnerI tested the patch again, and all comment links are working as expected.
Though there is still some work todo for the other handlers.
Comment #11
slashrsm commentedIs there any performance impact since we load entire entity?
Besides that it looks OK.
Comment #13
slashrsm commentedIt looks like this was already fixed.