Posted by arojoal on June 9, 2009 at 10:13pm
| Project: | Type-local nids |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
I'm trying to use $node->lnid as a value for a CCK computed field. I have done this before in the 5.x version of the module but the same configuration doesn't work undex 6.x.
As a test, I've assigned "print_r($node)" to the value of the computed field and "lnid" attribute does not appear in the object.
Comments
#1
try giving type_local_nids a negative module weight
#2
Hi jbrown,
Having a weight of 0 for a module beginning with the letter "t" means that $node->lnid and the token [lnid] will not be available for about 75% (alphabetical calculation, made for a point not for accuracy) of modules with the weight 0. I would have to think this is a fairly critical issue?
Sure each user hitting this issue could simply adjust the weights of their modules, but really, how many users are going to be to do that? It's not a very user friendly solution.
I would suggest setting the weight of Type-local nids to -1 on install.
Patch attached (requires #678386: Code cleanup patch).
Cheers,
Deciphered.
#3
http://drupal.org/cvs?commit=316094
#4
Automatically closed -- issue fixed for 2 weeks with no activity.