There is a bug in 7.x-1.11 on eloqua_webform.module line 69
if (!in_array($component_type, array('fieldset', 'pagebreak'))) {

the "!" should be deleted.

With "!" in this code, "Eloqua Field name" doesn't show up for "textfield" field type.

When I delete "!", it works as supposed to be.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Albert Volkman’s picture

Status: Active » Needs review
FileSize
4.36 KB

Yep, this looks like a bug. Here's a patch.

drupalninja99’s picture

I am pretty confused by this. The issue you describe looks completely different than this patch. I don't know where this patch is coming from?

drupalninja99’s picture

Also I will do some testing but "if (!in_array($component_type, array('fieldset', 'pagebreak'))) {" makes sense to me as is. That code is meant to skip fieldset and pagebreaks which are not compatible with values that would be sent to Eloqua.

Albert Volkman’s picture

FileSize
668 bytes

My apologies, uploaded the wrong patch.

So, have a look at this code-

http://drupalcode.org/project/eloqua.git/blob/refs/heads/7.x-1.x:/eloqua...

It's currently saying 'If the component is NOT a fieldset or pagebreak, add the markup "This component type is not compatible with the Eloqua Module." and return'. That's opposite of what we need, no?

drupalninja99’s picture

Oh wait you are right. OK I can fix this.

drupalninja99’s picture

Priority: Normal » Major
Status: Needs review » Fixed

Here is my slightly modified patch which fixes another problem. I will commit and push this out pretty soon as this is a major bug.

drupalninja99’s picture

Status: Fixed » Closed (fixed)

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