Skip to content

Commit

Permalink
Merge pull request #32 from NicoP-S/master
Browse files Browse the repository at this point in the history
var $qs_cf7_data does not exist
  • Loading branch information
kennym authored Mar 20, 2021
2 parents 525bec9 + 841e4e9 commit 72b5c17
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/class-cf7-api-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ public function qs_save_contact_form_details( $contact_form ){
$properties['json_template'] = isset( $_POST["json_template"] ) ? $_POST["json_template"] : '';

//extract custom placeholders
$record_type = isset( $qs_cf7_data['input_type'] ) ? $qs_cf7_data['input_type'] : 'params';
$record_type = isset( $properties['wpcf7_api_data']['input_type'] ) ? $properties['wpcf7_api_data']['input_type'] : 'params';
if( $record_type == 'json' || $record_type == 'xml' ){
$template = $record_type == 'json' ? $properties['json_template'] : $properties['template'];
preg_match_all("/\[(\w+(-\d+)?)\]/", $template, $matches, PREG_PATTERN_ORDER);
Expand Down

0 comments on commit 72b5c17

Please sign in to comment.