Closed (fixed)
Project:
Salesforce Suite
Version:
8.x-3.x-dev
Component:
salesforce_mapping.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
14 May 2018 at 20:46 UTC
Updated:
30 May 2018 at 17:04 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
chrisolof commentedPatch attached.
Token is expecting the entity type as the key in the $data array. Prior to this patch we were providing the namespaced class name, which doesn't work:
Comment #3
chrisolof commentedNot 100% yet. When a value doesn't exist for a token (say the Drupal field is empty) the token (like "[node:field_website:uri]", for example) is being pushed. It looks like there's a "clear" option we can pass to token's replace method that will help here - and I think we'll want to make sure we don't push empty strings when we should be pushing NULL. Updated patch in the works...
Comment #4
chrisolof commentedUpdated patch attached. Needs review.
Comment #6
aaronbaumanLooks good - committed e478d0c
Thanks