In sf_node, we have this bit of code:

    // Create a table for the unmapped fields.
    $header = array(t('Field name'), t('Salesforce @type value', array('@type' => salesforce_api_fieldmap_object_label('salesforce', $map->salesforce))));
    $rows = array();

    foreach ((array) $sf_data as $key => $value) {
      if (!isset($map->fields[$key]) && isset($object['fields'][$key])) {
        $rows[] = array(
          $object['fields'][$key]['label'],
          $value,
        );
      }
    }

$object does not exist. The proper variable name is $sf_object_definition. Because of this, all fields appear to be mapped.

sf_user looks to be fine.

Comments

dpearcefl’s picture

Status: Active » Needs review
StatusFileSize
new1.11 KB

Patch attached. I also set the fieldset to be collapsed.

dpearcefl’s picture

Bump. Thanks everyone.

kostajh’s picture

Priority: Normal » Major

This is a major issue - did this recently break? How have people been using sf_node up until now with this not working?

I'll try to get this in later today or tomorrow.

dpearcefl’s picture

I'm not sure this is a major issue but you would know. I can't say when it broke as I never knew the fieldset was even supposed to be there until I found it in the code.

dpearcefl’s picture

OK, so I was wrong, sf_user is also broken. Attached is a patch for sf_user and sf_node.

So much new information.

dpearcefl’s picture

Title: "Unmapped fields" never shows in sf_node » "Unmapped fields" never shows in sf_node and sf_user
kostajh’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

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