Advanced Contact form 7 DB - Version 1.7.2

Version Description

  • Fixed the delete data case as throws database error.
Download this release

Release Info

Developer vsourz1td
Plugin Icon 128x128 Advanced Contact form 7 DB
Version 1.7.2
Comparing to
See all releases

Code changes from version 1.7.1 to 1.7.2

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: vsourz1td
3
  Tags: contact form 7 db, advanced cf7 db, contact form 7 database, contact form db, contact form 7, save form data, save contact form, save cf7, database, cf7db, save-contact-form, Save-Forms-Data, import-cf7, export-contact-data, view-cf7-entry
4
  Requires at least: 4.0
5
  Tested up to: 5.2.2
6
- Stable tag: 1.7.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -175,6 +175,9 @@ return $contact_form_ids;
175
 
176
  == Changelog ==
177
 
 
 
 
178
  = 1.7.1 =
179
  * Minor tweaks in the plugin related to the edit data
180
 
3
  Tags: contact form 7 db, advanced cf7 db, contact form 7 database, contact form db, contact form 7, save form data, save contact form, save cf7, database, cf7db, save-contact-form, Save-Forms-Data, import-cf7, export-contact-data, view-cf7-entry
4
  Requires at least: 4.0
5
  Tested up to: 5.2.2
6
+ Stable tag: 1.7.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
175
 
176
  == Changelog ==
177
 
178
+ = 1.7.2 =
179
+ * Fixed the delete data case as throws database error.
180
+
181
  = 1.7.1 =
182
  * Minor tweaks in the plugin related to the edit data
183
 
admin/class-advanced-cf7-db-admin.php CHANGED
@@ -785,7 +785,7 @@ class Advanced_Cf7_Db_Admin {
785
  $current_action = sanitize_text_field($current_action);
786
  //Check current action is delete then execute this functionality
787
  if($current_action == 'delete'){
788
- if(isset($_POST['del_id'])){
789
  //Get nonce value
790
  $nonce = sanitize_text_field($_POST['_wpnonce']);
791
  //Verify nonce value
@@ -793,7 +793,7 @@ class Advanced_Cf7_Db_Admin {
793
  die('Security check');
794
  }
795
  //Get Delete row ID information
796
- $del_id = implode(',', array_map('intval',sanitize_text_field($_POST['del_id'])));
797
  //Get Form ID
798
  $fid = intval(sanitize_text_field($_POST['fid']));
799
 
@@ -805,7 +805,7 @@ class Advanced_Cf7_Db_Admin {
805
 
806
  $del_attach_key = array();
807
  foreach ($fields as $k1 => $v1) {
808
- if($arr_field_type_info[$k1] == 'file'){
809
  $del_attach_key[] = $k1;
810
  }
811
  }
785
  $current_action = sanitize_text_field($current_action);
786
  //Check current action is delete then execute this functionality
787
  if($current_action == 'delete'){
788
+ if(isset($_POST['del_id']) && !empty($_POST['del_id'])){
789
  //Get nonce value
790
  $nonce = sanitize_text_field($_POST['_wpnonce']);
791
  //Verify nonce value
793
  die('Security check');
794
  }
795
  //Get Delete row ID information
796
+ $del_id = implode(',', array_map('intval',$_POST['del_id']));
797
  //Get Form ID
798
  $fid = intval(sanitize_text_field($_POST['fid']));
799
 
805
 
806
  $del_attach_key = array();
807
  foreach ($fields as $k1 => $v1) {
808
+ if( isset($arr_field_type_info[$k1]) && $arr_field_type_info[$k1] == 'file'){
809
  $del_attach_key[] = $k1;
810
  }
811
  }
advanced-cf7-db.php CHANGED
@@ -9,7 +9,7 @@
9
  * Plugin Name: Advanced CF7 DB
10
  * Plugin URI: https://wordpress.org/plugins/advanced-cf7-db/
11
  * Description: Save all contact form 7 submitted data to the database, View, Export, ordering, Change field labels, Import data using CSV very easily.
12
- * Version: 1.7.1
13
  * Author: Vsourz Digital
14
  * Author URI: https://www.vsourz.com
15
  * License: GPL-2.0+
@@ -23,7 +23,7 @@ if ( ! defined( 'WPINC' ) ) {
23
  die;
24
  }
25
  global $vsz_cf7db_current_version;
26
- $vsz_cf7db_current_version = '1.7.1';
27
  /**
28
  * Defining all the table names and setting their prefix here
29
  */
9
  * Plugin Name: Advanced CF7 DB
10
  * Plugin URI: https://wordpress.org/plugins/advanced-cf7-db/
11
  * Description: Save all contact form 7 submitted data to the database, View, Export, ordering, Change field labels, Import data using CSV very easily.
12
+ * Version: 1.7.2
13
  * Author: Vsourz Digital
14
  * Author URI: https://www.vsourz.com
15
  * License: GPL-2.0+
23
  die;
24
  }
25
  global $vsz_cf7db_current_version;
26
+ $vsz_cf7db_current_version = '1.7.2';
27
  /**
28
  * Defining all the table names and setting their prefix here
29
  */