[drupal-devel] [bug] node_load, missing drupal_unpack leaves fields serialized

syllance drupal-devel at drupal.org
Tue Sep 20 01:04:19 UTC 2005

Issue status update for 
Post a follow up: 

 Project:      Drupal
 Version:      cvs
 Component:    node.module
 Category:     bug reports
 Priority:     normal
 Assigned to:  Anonymous
 Reported by:  syllance
 Updated by:   syllance
 Status:       patch (code needs review)
 Attachment:   http://drupal.org/files/issues/node_load-unpackfix.patch (855 bytes)

node_load function in node.module does not call drupal_unpack after
retrieving node and author user informations.

author user 'data' field is thus still serialized, and author prefs
cannot be accessed as usual.

this leads to issues on modules using node's author 'data' fields (link
hook in privatemsg, which access author prefs to display link or not).

the drupal_unpack is done in 4.6, but not in head, and this is not
described as a change on the update module handbook page, so i'm
submitting this potential issue.

patch to add the missing call is attached (this fixes the issue with
privatemsg link hook).

please review and apply the patch if necessary.


More information about the drupal-devel mailing list