The node object doesn't have the same structure as form values on a node submit, so the node_submit being called in the leech_refresh() function can cause some data in the leech node to get saved incorrectly.

An example is the user reference fields. The node object has this structure: field_reference[0]['uid']; while submitted form values has a structure: field_reference['uids']

Is it necessary to call node_submit? Why not just call leech_submit()?

Comments

aron novak’s picture

Assigned: Unassigned » aron novak
Status: Needs review » Fixed

Thanks for reporting this, likely other modules, not only CCK was affected. The fix is at the latest CVS rev., the next daily -dev package will contain the fix.

aron novak’s picture

Status: Fixed » Closed (fixed)