Skip to content
Snippets Groups Projects
Commit e78d275c authored by Alexander Rhodes's avatar Alexander Rhodes Committed by Aaron Bauman
Browse files

Issue #3018864 by ironsizide, cwcorrigan: Column 'salesforce_id' cannot be...

Issue #3018864 by ironsizide, cwcorrigan: Column 'salesforce_id' cannot be null while I'm pushing Case objects to Salesforce
parent 2d654b94
No related branches found
No related tags found
No related merge requests found
...@@ -190,11 +190,14 @@ function salesforce_push_entity_crud_mapping(EntityInterface $entity, $op, Sales ...@@ -190,11 +190,14 @@ function salesforce_push_entity_crud_mapping(EntityInterface $entity, $op, Sales
\Drupal::service('event_dispatcher')->dispatch(SalesforceEvents::ERROR, new SalesforceErrorEvent($e)); \Drupal::service('event_dispatcher')->dispatch(SalesforceEvents::ERROR, new SalesforceErrorEvent($e));
} }
$mapped_object if (!$mapped_object->isNew()) {
->set('last_sync_action', $op) // Only update existing mapped objects.
->set('last_sync_status', FALSE) $mapped_object
->set('revision_log_message', $e->getMessage()) ->set('last_sync_action', $op)
->save(); ->set('last_sync_status', FALSE)
->set('revision_log_message', $e->getMessage())
->save();
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment