Version Description
- Fixed CSV export limit bug
Download this release
Release Info
Developer | Access Keys |
Plugin | ![]() |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- classes/ufbl-model.php +19 -0
- readme.txt +4 -1
- ultimate-form-builder-lite.php +3 -3
classes/ufbl-model.php
CHANGED
@@ -181,6 +181,25 @@ if ( !class_exists( 'UFBL_Model' ) ) {
|
|
181 |
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
182 |
return $form_entry_rows;
|
183 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
184 |
/**
|
185 |
* Model to return form entries
|
186 |
* @param int $form_id
|
181 |
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
182 |
return $form_entry_rows;
|
183 |
}
|
184 |
+
|
185 |
+
/**
|
186 |
+
* Model to return form entries
|
187 |
+
* @param int $form_id
|
188 |
+
* @return array
|
189 |
+
*/
|
190 |
+
public static function get_all_forms_entries( $form_id = NULL ) {
|
191 |
+
global $wpdb;
|
192 |
+
$form_table = UFBL_FORM_TABLE;
|
193 |
+
$form_entry_table = UFBL_ENTRY_TABLE;
|
194 |
+
if ( $form_id == NULL ) {
|
195 |
+
$query = "select $form_entry_table.entry_id, $form_entry_table.entry_detail, $form_entry_table.entry_created, $form_table.form_title, $form_table.form_id from $form_entry_table inner join $form_table on $form_entry_table.form_id = $form_table.form_id order by $form_entry_table.entry_id desc ";
|
196 |
+
} else {
|
197 |
+
$query = "select $form_entry_table.entry_id, $form_entry_table.entry_detail, $form_entry_table.entry_created, $form_table.form_title, $form_table.form_id from $form_entry_table inner join $form_table on $form_entry_table.form_id = $form_table.form_id where $form_entry_table.form_id = $form_id order by $form_entry_table.entry_id desc ";
|
198 |
+
}
|
199 |
+
$form_entry_rows = $wpdb->get_results( $query, 'ARRAY_A' );
|
200 |
+
return $form_entry_rows;
|
201 |
+
}
|
202 |
+
|
203 |
/**
|
204 |
* Model to return form entries
|
205 |
* @param int $form_id
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: contact form, form builder, form, forms, contact forms, enquiry forms, for
|
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.4
|
7 |
-
Stable tag: 1.1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -95,6 +95,9 @@ Once you install the plugin , you can check some general documentation about how
|
|
95 |
10. Backend Entry Detail
|
96 |
|
97 |
== Changelog ==
|
|
|
|
|
|
|
98 |
= 1.1.0 =
|
99 |
* Fixed small bug for number field
|
100 |
|
4 |
Donate link: http://accesspressthemes.com/donation/
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.4
|
7 |
+
Stable tag: 1.1.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
95 |
10. Backend Entry Detail
|
96 |
|
97 |
== Changelog ==
|
98 |
+
= 1.1.1 =
|
99 |
+
* Fixed CSV export limit bug
|
100 |
+
|
101 |
= 1.1.0 =
|
102 |
* Fixed small bug for number field
|
103 |
|
ultimate-form-builder-lite.php
CHANGED
@@ -6,7 +6,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
6 |
Plugin Name: Ultimate Form Builder Lite
|
7 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
8 |
Description: A plugin to build any type of forms
|
9 |
-
Version: 1.1.
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
@@ -19,7 +19,7 @@ defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
|
|
19 |
* Necessary Constants for plugin
|
20 |
*/
|
21 |
global $wpdb;
|
22 |
-
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.1.
|
23 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
24 |
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
25 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|
@@ -390,7 +390,7 @@ if ( !class_exists( 'UFBL_Class' ) ) {
|
|
390 |
if ( isset( $_GET['form_id'] ) ) {
|
391 |
$form_id = sanitize_text_field( $_GET['form_id'] );
|
392 |
$form_data = $this->model->get_form_data( $form_id );
|
393 |
-
$entry_rows = $this->model->
|
394 |
$this->library->generate_csv( $form_data, $entry_rows );
|
395 |
} else {
|
396 |
wp_redirect( admin_url( 'admin.php?page=ufbl-form-entries' ) );
|
6 |
Plugin Name: Ultimate Form Builder Lite
|
7 |
Plugin URI: https://accesspressthemes.com/wordpress-plugins/ultimate-form-builder-lite/
|
8 |
Description: A plugin to build any type of forms
|
9 |
+
Version: 1.1.1
|
10 |
Author: AccessPress Themes
|
11 |
Author URI: http://accesspressthemes.com
|
12 |
License: GPL2
|
19 |
* Necessary Constants for plugin
|
20 |
*/
|
21 |
global $wpdb;
|
22 |
+
defined( 'UFBL_VERSION' ) or define( 'UFBL_VERSION', '1.1.1' ); //plugin version
|
23 |
defined( 'UFBL_SLUG' ) or define( 'UFBL_SLUG', 'ufbl' ); //plugin admin slug
|
24 |
defined( 'UFBL_TD' ) or define( 'UFBL_TD', 'ultimate-form-builder-lite' ); //plugin's text domain
|
25 |
defined( 'UFBL_IMG_DIR' ) or define( 'UFBL_IMG_DIR', plugin_dir_url( __FILE__ ) . 'images' ); //plugin image directory
|
390 |
if ( isset( $_GET['form_id'] ) ) {
|
391 |
$form_id = sanitize_text_field( $_GET['form_id'] );
|
392 |
$form_data = $this->model->get_form_data( $form_id );
|
393 |
+
$entry_rows = $this->model->get_all_forms_entries( $form_id );
|
394 |
$this->library->generate_csv( $form_data, $entry_rows );
|
395 |
} else {
|
396 |
wp_redirect( admin_url( 'admin.php?page=ufbl-form-entries' ) );
|