Closed (fixed)
Project:
Node export
Version:
6.x-2.4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
23 Apr 2009 at 04:49 UTC
Updated:
8 May 2009 at 06:40 UTC
If an exported node contains an object, the object will end up being imported as an array, and not only an array, but an array of arrays. This is probably not a good idea.
I've attached a patch which corrects this, and simplifies some of the import process.
PS: Looks like some whitespace fixes made it into the patch.
| Comment | File | Size | Author |
|---|---|---|---|
| node_export.patch | 3.37 KB | cdale |
Comments
Comment #1
danielb commentedThe method used to generate the export code in that version of the module is absolutely out of date, sorry about this, but the method used to generate the code in the latest Drupal 5 version has proven to be the least buggy across different versions of PHP, and uses a much more manual process to build the export code, including keeping track of what is meant to be an object. I have fluffed something in CVS if the D6 does not have this...
My development copy seems to be up to date, I will get to this when I have a chance, as I've promised the node code would be consistent across Drupal versions.
Comment #2
danielb commentedoops
Comment #3
cdale commentedYeah, looks like the 6.x-2.4 release has different code to the 5.x-2.1 release. If you could get this committed that would be tops.
Comment #4
danielb commentedI've updated the node encoding in 6.x-2.5 to match the 5.x algorithm.
I'll deal with whitespace and code style down the track.
Comment #5
cdale commentedCheers. :)