Closed (fixed)
Project:
Type-local nids
Version:
5.x-1.3
Component:
User interface
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Sep 2008 at 18:55 UTC
Updated:
9 Oct 2008 at 20:04 UTC
At what point lnid is created? I have a CCK computed field that does some processing based on the lnid. When I create a new node, the result of the computed field is missing the lnid part. The code part of my field is something like
($node->lnid+50)*2;
Assuming lnid is 1, the output would be (1+50)*2 = 102. However, every time I create a new node the result is 100 so it apparently disregards the lnid. If I go to modify the node and just hit the Send button without actually changing anything, everything is ok. I assume this has something to do with the code of my CCK field being eval'd before the lnid is assigned. Any ideas how to get around this?
Mikko
Comments
Comment #1
jbrown commentedTry lowering the type_local_nids module weight with http://drupal.org/project/moduleweight or http://drupal.org/project/util (for D6).
Comment #2
mkoskenk commentedThank you! Exactly what I was looking for and it did the trick. Man, I owe you one :)
Comment #3
mkoskenk commentedComment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.