In sf_node.module, sf_node_nodeapi needs to check $options on case $op equals 'insert'. So

        $options = salesforce_api_fieldmap_options('node_'. $node->type, NULL, TRUE);

should be

        $options = salesforce_api_fieldmap_options('node_'. $node->type, NULL, TRUE);

        if ( empty($$options) ) {
        	return;
        }

Otherwise code attempts to export content type even with out a valid map.

CommentFileSizeAuthor
#1 sf_node.module.patch485 bytesaaronbauman

Comments

aaronbauman’s picture

StatusFileSize
new485 bytes
aaronbauman’s picture

Assigned: Unassigned » aaronbauman
Status: Active » Needs review
Bevan’s picture

Committed to DRUPAL-6--2 in commit #202448 http://drupal.org/cvs?commit=202448

I thought I was only committing the whitespace changes, and not this patch too, so I forgot to give due credit.

Bevan’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.