Plugin Directory

Changeset 3308210


Ignore:
Timestamp:
06/09/2025 01:21:41 AM (9 months ago)
Author:
mycustomsoftware
Message:

Fixed issue with displaying trash forms in drop-down menu. Fix issue with associating fields list empty.

Location:
import-entries-for-gravity-forms
Files:
39 added
4 edited

Legend:

Unmodified
Added
Removed
  • import-entries-for-gravity-forms/trunk/import-entries-for-gravity-forms.php

    r3244146 r3308210  
    44 * Plugin URI: https://wordpress.org/plugins/import-entries-for-gravity-forms
    55 * Description: Simplify your workflow with Import Entries for Gravity Forms, the essential tool for importing data into your Gravity Forms effortlessly. Whether you’re migrating data from another system, updating existing forms, or consolidating entries, this plugin saves you time and effort.
    6  * Version: 1.0.1
     6 * Version: 1.0.2
    77 * Author:      My Custom Software
    88 * Author URI: https://github.com/mycustomsoftware
     
    1717}
    1818if(!defined('GFIMPORTVERSION')){
    19     define("GFIMPORTVERSION","1.0.1");
     19    define("GFIMPORTVERSION","1.0.2");
    2020}
    2121if(!defined('GFIMPORTPATH')){
  • import-entries-for-gravity-forms/trunk/readme.txt

    r3244146 r3308210  
    22Tags: Import entries for Gravity Forms
    33Tested up to: 6.7
    4 Stable tag: 1.0.1
     4Stable tag: 1.0.2
    55Requires at least: 6.7
    66License: GPLv3
     
    5353== Changelog ==
    5454
     55= 1.0.2 =
     56Fixed issue with displaying trash forms in drop-down menu. Fix issue with associating fields list empty.
     57
    5558= 1.0.0 =
    5659Initial release.
  • import-entries-for-gravity-forms/trunk/src/GfFields.php

    r3244114 r3308210  
    3131        if ( is_array( $form['fields'] )  && !empty($form['fields'])) {
    3232            foreach ( $form['fields'] as $field ) {
    33                 $inputs = $field->get_entry_inputs();
    34                 if ( empty( $inputs ) ) {
    35                     continue;
    36                 }
    37                 if ( is_array( $inputs ) ) {
    38                     foreach ( $inputs as $input ) {
    39                         $this->fields[] = array( $input['id'], GFCommon::get_label( $field, $input['id'] ) );
    40                     }
    41                 } else if ( ! $field->displayOnly ) {
     33                if ( ! $field->displayOnly ) {
    4234                    $this->fields[] = array( $field->id, GFCommon::get_label( $field ) );
    4335                }
  • import-entries-for-gravity-forms/trunk/src/Queries/GetAllForms.php

    r3244114 r3308210  
    99        if ( false === $value ) {
    1010            global $wpdb;
    11             $value = $wpdb->get_results($wpdb->prepare( "SELECT `id`, `title` FROM %i WHERE %s = %d", array(
     11            $sql = $wpdb->prepare( "SELECT `id`, `title` FROM %i WHERE %i = %d", array(
    1212                $wpdb->prefix.'gf_form',
    1313                "is_trash",
    14                 0
    15             )));
     14                "0"
     15            ));
     16            $value = $wpdb->get_results($sql);
    1617            wp_cache_set( 'import_entries_gravity_forms_get_all_not_trashed_forms', $value );
    1718        }
Note: See TracChangeset for help on using the changeset viewer.