| Project: | Salesforce Webform Data Integration |
| Version: | 6.x-3.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
This was found by highrockmedia:
Looks like there is a bug, I am not setup to push out a fix, but I believe I know what the fix is:
salesforcewebform.module - Line 351:
if ($response->success) {
should be:
if ($response[0]->success) {
I believe $response is an array, but we are always only submitting one request at a time so we are always getting one response, however salesforce always returns it in an array, so it is an array of one.
Most of the time the salesforce id isn't used once it comes back, but in the case of inserting dependant records, this could possibly cause a problem, as the salesforce id isn't being returned correctly.
For example, insert a lead then insert and event using the lead ID returned from the insert.