Closed (fixed)
Project:
Automatic Nodetitles
Version:
7.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Apr 2011 at 10:41 UTC
Updated:
9 Sep 2019 at 21:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
fagoI'm not sure the 'clear' options is really the right solution here, shouldn't the token be provided but be empty?
Comment #2
ownage commentedPatch doesn't install-- "Hunk #1 FAILED at 129."
Manually installing the patch renders a blank title when token fields are inserted.
Comment #3
dave reidNo, this is what the clear option is for. Tokens do not and should not return anything if they do not have data. For example, if you have a token like [node:field_noderef:title] with a node that has no node reference data, this would burden the token code to have to pass something into the 'chained' token replacement for a node reference field so that something could be returned.
Comment #4
ownage commentedI had over 6 thousand nodes to update with this, so I went into the database via phpmyadmin and executed SQL to get rid of these. I found out if you import your content with Feeds, these tokens show up in the title.
SQL I used:
Comment #5
fagoad #3:
Makes sense. Thanks, committed.
Comment #7
yoavi commentedHi
Had the same problem with the 7.x-1.0 version
the patch worked for me
Comment #8
Imaaxa-Cory commentedThis patch worked on my site also. I am wondering if this is going to be committed?
Comment #9
mdeltito commentedAnother confirmation that this patch works as expected. This should be committed and merged.
Comment #10
Imaaxa-Cory commentedPlease commit this patch.
Comment #11
festerm commentedI'm not sure if that's the cause, but after I update the Token module to 1.6 this behavior is happening again.
Comment #12
victoriachan commentedThanks for this. This is already in the Dev branch. I have rerolled the patch for 7.x-1.0 for people not using dev branch.
Re #11, I'm using this with Token 1.6 with no issues.
Comment #13
higherform commentedUsing patch #12 to ANT 7.x-1.0 with Token 7.x-1.6 . Behavior for empty tokens appears to be correct.
Comment #14
jim22 commented#12 worked for me. Thank you!