Closed (fixed)
Project:
Pathauto
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
26 Apr 2011 at 16:16 UTC
Updated:
20 May 2011 at 02:51 UTC
I have updated some nodes from D6 to D7 and they have an empty string in $node->language. Pathauto should be more robust when generating the path aliases and I propose to use rather !empty() instead of isset(). Patch attached.
| Comment | File | Size | Author |
|---|---|---|---|
| pathauto-empty-node-language.patch | 519 bytes | klausi |
Comments
Comment #1
dave reidThe better question is why your nodes would still have an empty language string rather than LANGUAGE_NONE? node_update_7009() was supposed to fix this.
Comment #2
klausiHm, I didn't experience any update errors and the record for node.module in the system table says 7010. Anyway, thanks for the pointer, that will fix my problem, too.
Comment #3
dave reidIt might have been another module like Feeds or something that does node_save() using the improper language value.