Closed (fixed)
Project:
Views (for Drupal 7)
Version:
7.x-3.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 May 2011 at 14:03 UTC
Updated:
11 Jul 2012 at 17:30 UTC
In one of my module, i call the function views_embed_view() when a new node is created. When I am connected as an administrator, it works. When I'm connected with another user (who have access to this view), it returns "
" without any data for the same request...
Doesn't anyone know why? In the alpha1 version, it works very well.
Thank you
Comments
Comment #1
dawehnerYou call views_embed_view on the same request as the creation of the node?
This is just assuming because you couldn't provide an export:
Is problem could be a caching issue. You could node_load($nid, NULL, TRUE); to be sure to clear the load cache.
Comment #2
merlinofchaos commentedComment #3
jlaurin commentedI call views_embed_view in my implementation of hook_node_insert.
While i was waiting for an answer, i installed the dev version of Views and I no longer have the problem mentioned.
I will try a node_load in the beta3.
Comment #4
merlinofchaos commentedComment #5
dawehnerIf it's fixed in the dev version so feel free to use it. In general the dev version has much less bugs than the beta3.
Comment #7
MauPalantir commentedComment #8
MauPalantir commentedI got the same problem with 7.x-3.3.
Comment #9
MauPalantir commentedComment #10
dawehner@Mau Palantír
If you reopen an issue can you please explain why? What are you doing exactly etc...
Comment #11
damiankloip commentedWhy do people want to embed a view in hook_node_insert??
Comment #12
esmerel commented