Closed (fixed)
Project:
Computed Field
Version:
6.x-1.0-beta3
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2009 at 20:25 UTC
Updated:
13 Oct 2010 at 01:47 UTC
Hello
The computed value does not get printed in views, the label is correctly printed but the value is empty.
If i remove the store in database, the value is correctly printed.
If i store in database, I can see the correct computed value in the database but it is not printed in views.
Thanks
Comments
Comment #1
tpainton commentedI concur. I just installed Beta3 and tried the tutorial "Link a node to itself" and the $node.nid is not passed if "store in database" is checked. If unchecked, the value is passed to $display and works properly. I am going to change this to critical as it seems to a duplicated bug and breaks database storage, something needed to use the field in views.
Comment #2
tpainton commentedAh this might be user error. I should have an answer soon. debugging.
Comment #3
tpainton commentedI don't think this is a bug. I think the problem is that you are viewing a node created before adding the field. I did this as well. If you are looking at a node created prior to installing, you must save the node to have the value passed. I am pretty sure this is by design. for some reason the following code doesn't retrieve the nodeid.
Something with D6?
I don't know.. maybe I don't know what I am talking about, that a very good possibility but the bottom line is that it works just fine on old nodes of one simply edits, then saves the node. It also works fine with database storage on all newly created nodes.
Hopefully this helps someone.
Comment #4
bendev commentedI don't understand your answer;
it doesn't help whether I add or remove the save node command.
EDIT:
i found an answer ... i was not building the view correctly...
I started with node type instead of user type and then I was missing the relation from the user to the node
now everything works fine
thanks
END OF EDIT
Comment #5
Moonshine commentedClosing.