Closed (fixed)
Project:
Salesforce Webform Data Integration
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
11 Mar 2011 at 19:42 UTC
Updated:
19 Apr 2012 at 04:01 UTC
There are a lot of field in this drop-down, it would help if it was sorted alphabetically.
Around line 86 salesforcewebform.module:
$valid_fields = array_merge($sfwaf_array, salesforcewebform_load_custom_fields('webform'));
// BEGIN NEW CODE
asort($valid_fields);
// END NEW CODE
$new_form_key = array(
'#type' => 'select',
'#title' => t('SalesForce Field Key'),
'#multiple' => FALSE,
'#options' => $valid_fields,
'#description' => t('Select a SalesForce field that this form field will map to. If you switch the form to an email for this will be used as the machine readable key.'),
'#weight' => $form['field']['form_key']['#weight'],
'#default_value' => empty($form['#parameters'][3]['form_key']) ? '' : $form['#parameters'][3]['form_key'],
);
Comments
Comment #1
chriscalip commentedComment #2
chriscalip commentedI cant help out in 2.x branch see: http://drupal.org/node/1092344
Comment #3
obsidiandesign commentedFixed as of this evening. Thanks to btlife for pointing this out.