sf_node_export() when it loads a node uses node_load($nid);, this should be node_load($node);.
When it saves the salesforce id it uses
salesforce_api_id_save('node', $nid, $response->id, $fieldmap);
This should be
salesforce_api_id_save('node', $node->nid, $response->id, $fieldmap);
($nid should be $node->nid)
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 395648.patch | 1.87 KB | Bevan |
| #1 | sf_node.module.patch | 849 bytes | aaronbauman |
Comments
Comment #1
aaronbaumanComment #2
al.ex commentedI can confirm both the bug and the patch as working.
Comment #3
Bevan commentedI found these changes broke node-create. All CCK fields were deleted from the node and values NULL were saved to SF feilds. I made one additional change to fix this. See the attached patch. It applies from the CVS root of this project, not the salesforce_api subdirectory.
This needs more testing.
Comment #4
Bevan commentedCommitted to DRUPAL-6--2. Further testing would be ideal before release. Please update from CVS and check this works.