Closed (outdated)
Project:
Automatic Nodetitles
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
7 Jul 2011 at 20:21 UTC
Updated:
24 Jul 2018 at 05:05 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
justmagicmaria commentedSubscribing. Same issue.
Comment #2
venge commentedSuscribing.
I have the same annoying problem!
Comment #3
jfrederick commentedSubscribing.
Re-saving the node also replaces the tokens for me.
Comment #4
gagoo commentedSame problem except that it doesn't replace tokens after re-saving.
Subscribe
Comment #5
muhh commentedi can confirm this and add the following: it looks like it happens only with tokens, that are generated with the node, like [node:nid], but not with existing values, like [site:current-user].
Comment #6
phelix commentedThis is happening to me too. After a edit and save again it displays just fine. Someone please help me figure out whats causing this!!
Comment #7
thoughtcat commentedSame problem here :(Edit: This is a really old issue (years old) although someone has posted some workarounds at http://drupal.org/node/373978#comment-5464000
I fixed this easily using Rules - instructions here: http://drupal.org/node/373978#comment-1654702
Thanks to users dreeds for the instructions and aubjr_drupal for linking to them from his comment at http://drupal.org/node/373978#comment-5464000
:-))
Comment #8
caw67 commentedsame problem here. and it is no solution to use rules!! i know it works, but wether i use rules i dont need the automatic_nodetitle module!
and same problem in auto_entitylabel
Comment #9
rlangille commentedHow about instead of using rules to create a band-aid for an annoying issue, we just use hook_node_insert. The node is fully populated, but not yet committed to the db (even has node id). If you look at the documentation for the hook you'll see that you can do something as simple as the following to resolve the issue...
This will change the node title before it's initially committed to the db, since node_save has not yet gone out of scope, but the entire transaction is fully formed.
Patch coming shortly.
Comment #10
rlangille commentedComment #11
rlangille commentedComment #12
jfrederick commentedComment #13
jfrederick commentedComment #14
kaidjohnson commentedRe-rolled for coding standards. No functional change.
+1 RTBC
Comment #15
rlangille commentedWoops, forgot to run my script to convert the standards. Thanks for the catch! :D
Comment #16
manish-31 commentedThe module is working fine the title for a node is correctly generated. I've tested all cases default , using tokens and with php every time correct title is being generated while creating a node. This issue should be closed or fixed as it no longer exists.
Comment #17
gaurav.kapoor commented