Created
November 21, 2016 22:42
-
-
Save kepford/73eb4534e820f1799606bbc35324cf5b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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