Skip to content

Commit

Permalink
Merge pull request #2 from usame-algan/1-firstname-overwrite-fix
Browse files Browse the repository at this point in the history
fixes bug that caused guessed fields to overwrite prefixed fields
  • Loading branch information
Usame Algan authored Aug 7, 2020
2 parents 789c392 + df725b5 commit 290e67b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-cf7-zwr-api.php
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ public function send_registration($contactform, &$abort, $submission) {
$webinar_id = get_post_meta($contactform->id(), 'cf7zwr-webinar_id', true);

$field_parser = new CF7_ZWR_Field_Finder($posted_data);
$fields = $field_parser->combine(['prefixed', 'guessed']);
$fields = $field_parser->combine(['guessed', 'prefixed']);

if ($webinar_id) {
$this->build($this->api_url . '/webinars/' . $webinar_id . '/registrants', array('body' => wp_json_encode($fields)), 'POST');
Expand Down

0 comments on commit 290e67b

Please sign in to comment.