Skip to content

Instantly share code, notes, and snippets.

@kepford
Created November 21, 2016 22:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kepford/73eb4534e820f1799606bbc35324cf5b to your computer and use it in GitHub Desktop.
Save kepford/73eb4534e820f1799606bbc35324cf5b to your computer and use it in GitHub Desktop.
diff --git a/pardot.module b/pardot.module
index 3f0ef59..ddb9804 100644
--- a/pardot.module
+++ b/pardot.module
@@ -483,7 +483,7 @@ function _pardot_form_collapse_form($tree, $posted_values, $form, &$result) {
elseif ($form[$name]['#type'] == 'select') {
// Map select values to text versions. The numeric values won't mean
// much to Pardot, CRM or any other integration.
- $result[$name] = $form[$name]['#options'][$value];
+ $result[$name] = $value;
}
// If this is an address field.
elseif (!empty($form[$name]['#addressfield'])) {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment