Plugin Directory

Changeset 2973004


Ignore:
Timestamp:
09/29/2023 12:15:04 PM (2 years ago)
Author:
tkc49
Message:

Update to version 2.27.1 from GitHub

Location:
kintone-form
Files:
6 edited
1 copied

Legend:

Unmodified
Added
Removed
  • kintone-form/tags/2.27.1/includes/class-kintone-form-post-kintone.php

    r2767323 r2973004  
    9999
    100100                // kintoneに設定されている全フィールドをループ.
    101 
    102                 foreach ( $appdata['formdata']['properties'] as $kintone_form_properties_data ) {
    103 
    104                     if ( isset( $kintone_form_properties_data['code'] ) ) {
    105                         if ( 'SUBTABLE' === $kintone_form_properties_data['type'] ) {
    106                             /**
    107                              * SUBTABLEの処理.
    108                              */
    109                             $subtable_records = array();
    110                             $subtable_records = apply_filters(
    111                                 'kintone_form_subtable',
    112                                 $subtable_records,
    113                                 $appdata,
    114                                 $kintone_form_properties_data,
    115                                 $kintone_setting_data,
    116                                 $cf7_send_data,
    117                                 $kintone_fields_and_cf7_mailtag_relate_data,
    118                                 $e
    119                             );
    120 
    121                             if ( ! empty( $subtable_records ) ) {
    122                                 $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $subtable_records;
    123                             }
    124                         } else {
    125                             // 通常処理.
    126                             $post_data = $this->generate_format_kintone_data( $kintone_setting_data, $appdata, $kintone_fields_and_cf7_mailtag_relate_data, $kintone_form_properties_data, $cf7_send_data, $e );
    127                             if ( isset( $post_data['value'] ) ) {
    128                                 $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $post_data;
     101                if (isset($appdata['formdata']['properties']) && (is_array($appdata['formdata']['properties']) || is_object($appdata['formdata']['properties']))) {
     102                    foreach ( $appdata['formdata']['properties'] as $kintone_form_properties_data ) {
     103
     104                        if ( isset( $kintone_form_properties_data['code'] ) ) {
     105                            if ( 'SUBTABLE' === $kintone_form_properties_data['type'] ) {
     106                                /**
     107                                 * SUBTABLEの処理.
     108                                 */
     109                                $subtable_records = array();
     110                                $subtable_records = apply_filters(
     111                                    'kintone_form_subtable',
     112                                    $subtable_records,
     113                                    $appdata,
     114                                    $kintone_form_properties_data,
     115                                    $kintone_setting_data,
     116                                    $cf7_send_data,
     117                                    $kintone_fields_and_cf7_mailtag_relate_data,
     118                                    $e
     119                                );
     120
     121                                if ( ! empty( $subtable_records ) ) {
     122                                    $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $subtable_records;
     123                                }
     124                            } else {
     125                                // 通常処理.
     126                                $post_data = $this->generate_format_kintone_data( $kintone_setting_data, $appdata, $kintone_fields_and_cf7_mailtag_relate_data, $kintone_form_properties_data, $cf7_send_data, $e );
     127                                if ( isset( $post_data['value'] ) ) {
     128                                    $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $post_data;
     129                                }
    129130                            }
    130131                        }
  • kintone-form/tags/2.27.1/kintone-form.php

    r2897736 r2973004  
    44 * Plugin URI:
    55 * Description: This plugin is an addon for "Contact Form 7".
    6  * Version:     2.27.0
     6 * Version:     2.27.1
    77 * Author:      Takashi Hosoya
    88 * Author URI:  http://ht79.info/
  • kintone-form/tags/2.27.1/readme.txt

    r2897736 r2973004  
    66Tags: cybozu, kintone, contact form 7, form, form data to kintone
    77Requires at least: 4.9
    8 Tested up to: 6.2
    9 Stable tag: 2.27.0
    10 Requires PHP: 7.1
     8Tested up to: 6.3.1
     9Stable tag: 2.27.1
     10Requires PHP: 7.4
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050
    5151== Changelog ==
     522.27.1 (2023-09-29)
     53* Fixed foreach() argument must be of type array|object, null given in /wp-content/plugins/kintone-form/includes/class-kintone-form-post-kintone.php on line 102
     54* Fully tested with Contact Form 7 version 5.8.1
     55
    52562.27.0 (2023-04-12)
    5357* Changed the method of obtaining CF7_SPECIAL_TAGS.
  • kintone-form/trunk/includes/class-kintone-form-post-kintone.php

    r2767323 r2973004  
    9999
    100100                // kintoneに設定されている全フィールドをループ.
    101 
    102                 foreach ( $appdata['formdata']['properties'] as $kintone_form_properties_data ) {
    103 
    104                     if ( isset( $kintone_form_properties_data['code'] ) ) {
    105                         if ( 'SUBTABLE' === $kintone_form_properties_data['type'] ) {
    106                             /**
    107                              * SUBTABLEの処理.
    108                              */
    109                             $subtable_records = array();
    110                             $subtable_records = apply_filters(
    111                                 'kintone_form_subtable',
    112                                 $subtable_records,
    113                                 $appdata,
    114                                 $kintone_form_properties_data,
    115                                 $kintone_setting_data,
    116                                 $cf7_send_data,
    117                                 $kintone_fields_and_cf7_mailtag_relate_data,
    118                                 $e
    119                             );
    120 
    121                             if ( ! empty( $subtable_records ) ) {
    122                                 $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $subtable_records;
    123                             }
    124                         } else {
    125                             // 通常処理.
    126                             $post_data = $this->generate_format_kintone_data( $kintone_setting_data, $appdata, $kintone_fields_and_cf7_mailtag_relate_data, $kintone_form_properties_data, $cf7_send_data, $e );
    127                             if ( isset( $post_data['value'] ) ) {
    128                                 $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $post_data;
     101                if (isset($appdata['formdata']['properties']) && (is_array($appdata['formdata']['properties']) || is_object($appdata['formdata']['properties']))) {
     102                    foreach ( $appdata['formdata']['properties'] as $kintone_form_properties_data ) {
     103
     104                        if ( isset( $kintone_form_properties_data['code'] ) ) {
     105                            if ( 'SUBTABLE' === $kintone_form_properties_data['type'] ) {
     106                                /**
     107                                 * SUBTABLEの処理.
     108                                 */
     109                                $subtable_records = array();
     110                                $subtable_records = apply_filters(
     111                                    'kintone_form_subtable',
     112                                    $subtable_records,
     113                                    $appdata,
     114                                    $kintone_form_properties_data,
     115                                    $kintone_setting_data,
     116                                    $cf7_send_data,
     117                                    $kintone_fields_and_cf7_mailtag_relate_data,
     118                                    $e
     119                                );
     120
     121                                if ( ! empty( $subtable_records ) ) {
     122                                    $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $subtable_records;
     123                                }
     124                            } else {
     125                                // 通常処理.
     126                                $post_data = $this->generate_format_kintone_data( $kintone_setting_data, $appdata, $kintone_fields_and_cf7_mailtag_relate_data, $kintone_form_properties_data, $cf7_send_data, $e );
     127                                if ( isset( $post_data['value'] ) ) {
     128                                    $kintone_post_data[ $app_count ]['datas'][ $kintone_form_properties_data['code'] ] = $post_data;
     129                                }
    129130                            }
    130131                        }
  • kintone-form/trunk/kintone-form.php

    r2897736 r2973004  
    44 * Plugin URI:
    55 * Description: This plugin is an addon for "Contact Form 7".
    6  * Version:     2.27.0
     6 * Version:     2.27.1
    77 * Author:      Takashi Hosoya
    88 * Author URI:  http://ht79.info/
  • kintone-form/trunk/readme.txt

    r2897736 r2973004  
    66Tags: cybozu, kintone, contact form 7, form, form data to kintone
    77Requires at least: 4.9
    8 Tested up to: 6.2
    9 Stable tag: 2.27.0
    10 Requires PHP: 7.1
     8Tested up to: 6.3.1
     9Stable tag: 2.27.1
     10Requires PHP: 7.4
    1111License: GPLv2 or later
    1212License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    5050
    5151== Changelog ==
     522.27.1 (2023-09-29)
     53* Fixed foreach() argument must be of type array|object, null given in /wp-content/plugins/kintone-form/includes/class-kintone-form-post-kintone.php on line 102
     54* Fully tested with Contact Form 7 version 5.8.1
     55
    52562.27.0 (2023-04-12)
    5357* Changed the method of obtaining CF7_SPECIAL_TAGS.
Note: See TracChangeset for help on using the changeset viewer.