Having the following two messages pop up for each data field entered, once the Submit button is pressed in Drupal 7.17. Sugar Version 6.5.7 (Build 8576)

Notice: Undefined index: value in webform2sugar_webform_submission_insert() (line 92 of /www/drupal/sites/all/modules/webform2sugar/webform2sugar.module).

Warning: Invalid argument supplied for foreach() in webform2sugar_webform_submission_insert() (line 96 of /www/drupal/sites/all/modules/webform2sugar/webform2sugar.module).

Drupal Web Fields Image

Drupal to Sugar CRM Mapping Image

Note: A new lead record is created in SugarCRM, but it does not contain any data.

CommentFileSizeAuthor
error.png139.4 KBaharding

Comments

aharding’s picture

Issue summary: View changes

Added photos

aharding’s picture

Issue summary: View changes

Additional info

omidtak’s picture

I had the same errors and was inserting blank fields into sugarcrm. I got it to work with the latest drupal 7.19 and webform 7.x-4.0-alpha6
edit the file:
and change line 92 from: webform2sugar.module
$formvalues = $submission->data[$sugar_component->cid]['value'];
to:
$formvalues = $submission->data[$sugar_component->cid];

basically only remove ['value'] at the end and it should start working.

of course this is not upgrade safe.

rurri’s picture

Great info.

Looks like we can make a check to see if the value is stored in value or not, and dynamically use one or the other.

rurri’s picture

Status: Active » Fixed

Can confirm that this was introduced in the newest version of webform.

Modified webform2sugar to check for array key and use appropriate value.

This allows module to work on both webform 7.3 and 7.4

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

Added Sugar Version