There's no really sensible behavior for pulling values when you're syncing a constant or token, and if you accidentally leave these rows configured as "sync" you get some ugly errors.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

gcb’s picture

Patch attached, needs testing.

gcb’s picture

Status: Active » Needs review
AaronBauman’s picture

Category: Feature request » Bug report
FileSize
993 bytes

I'd probably call this a bug, since it's gonna be throwing notices when calling non-existent functions.

Attaching patch to also add a function_exists() call to this conditional.

AaronBauman’s picture

er, updated patch.

mariacha1’s picture

Title: Disable pull for constant & token sync fields » Validation on mappings form submit: Disable pull for constant & token sync fields
Status: Needs review » Needs work
Related issues: +#2612942: errors during salesforce_pull_map_fields()

The issue described here is fixed by https://www.drupal.org/node/2612942 but it would be nice to let people know, when they're saving their mapping form, that constants and tokens can't be pulled. Going to hijack this issue for that purpose. :)