Title as field and devel generate problem
peximo - October 13, 2009 - 13:16
| Project: | Devel |
| Version: | 7.x-1.x-dev |
| Component: | devel_generate |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Description
Hi,
the feature title as field (#557292: TF #3: Convert node title to fields) committed to HEAD breaks devel generate.

#1
This patch fix the problem.
#2
committed. thx.
#3
This patch replaced
$node->titlewith$node->title[FIELD_LANGUAGE_NONE][0]['value'], which worked for a few days, but now I find that $node->title reverted back to being a simple string. What gives?#4
Hi salvis,
I've the latest checkout and title is a field and I don't have any problem with node title and devel generate.
But I've find another error with devel_generate.module related to (cck) fields.
I'have opened another issue #607310: Devel generate field_info_instances() error for this problem.
#5
Actually, I found the problem in devel_node_access (which you patched, too). I don't know about devel_generate.
I updated from CVS 12h ago as well as just now, and the $node->title in devel_node_access is a string.
This is weird — let's set it back to fixed and see if we get other people saying the same thing. In the meantime, I can work fine after having removed the indexes.
#6
Automatically closed -- issue fixed for 2 weeks with no activity.
#7
agentrickard mailed me that
$node->title[FIELD_LANGUAGE_NONE][0]['value']wasn't working for him either.I've reverted it to
$node->titlefor devel_node_access.module.#8
Duh, I finally got to the bottom of this: depending on whether DNA's debug mode was enabled or not, the $node object was retrieved via node_load() or directly from the database. Sorry about all the confusion...
#9
Automatically closed -- issue fixed for 2 weeks with no activity.