Hello,

The code to delete the object map when a node is deleted is not functioning because :

  • It passes the wrong type to salesforce_api_delete_object_map. The type for all nodes is
    'node', while it passes 'node_[node_type]' ;
  • It passes the node's uid instead of the node's nid.

Thanks,
Anselm

Ps. Issue was originally entitled 'Mismatched values for drupal_type in salesforce_object_map table' as I wasn't sure what the issue was - but further investigation convinced me this code was buggy.

CommentFileSizeAuthor
#1 sf_node.module.patch502 bytesAlice Heaton

Comments

Alice Heaton’s picture

Title: Mismatched values for drupal_type in salesforce_object_map table » salesforce_object_map entries for nodes not removed upon node deletion
Status: Active » Needs review
StatusFileSize
new502 bytes

Here is the patch.

kostajh’s picture

Version: 6.x-2.x-dev » 7.x-2.x-dev
Status: Needs review » Patch (to be ported)

Thanks Anselm! Committed to 6.x-2.x-dev: http://drupalcode.org/project/salesforce.git/commit/2112545

Evan, not sure if this is needed to 7.x-2.x, if not can you please close the issue?

kostajh’s picture

Status: Patch (to be ported) » Fixed

Not needed for 7.x-2.x

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Change the description because further investigation revealed the nature of the issue.