Changeset 3177301
- Timestamp:
- 10/28/2024 03:24:31 PM (17 months ago)
- Location:
- kintone-form
- Files:
-
- 6 edited
- 1 copied
-
tags/2.27.6 (copied) (copied from kintone-form/trunk)
-
tags/2.27.6/kintone-form.php (modified) (4 diffs)
-
tags/2.27.6/modules/radio.php (modified) (5 diffs)
-
tags/2.27.6/readme.txt (modified) (2 diffs)
-
trunk/kintone-form.php (modified) (4 diffs)
-
trunk/modules/radio.php (modified) (5 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
kintone-form/tags/2.27.6/kintone-form.php
r3137588 r3177301 4 4 * Plugin URI: 5 5 * Description: This plugin is an addon for "Contact Form 7". 6 * Version: 2.27. 56 * Version: 2.27.6 7 7 * Author: Takashi Hosoya 8 8 * Author URI: http://ht79.info/ … … 10 10 * Text Domain: kintone-form 11 11 * Domain Path: /languages 12 * 13 * @package kintone-form 12 14 */ 13 15 … … 31 33 32 34 define( 'KINTONE_FORM_URL', plugins_url( '', __FILE__ ) ); 33 define( 'KINTONE_FORM_PATH', dirname( __FILE__ ));35 define( 'KINTONE_FORM_PATH', __DIR__ ); 34 36 35 37 $data = get_file_data( … … 70 72 $kintone_form = new Kintone_Form(); 71 73 $kintone_form->register(); 72 73 -
kintone-form/tags/2.27.6/modules/radio.php
r2897736 r3177301 1 1 <?php 2 /** 3 * Radio module. 4 * 5 * @package kintone-form 6 */ 2 7 8 /** 9 * Radio module. 10 */ 3 11 class KintoneFormRadio { 4 12 … … 8 16 public static function get_instance() { 9 17 /** 10 * avariable that keeps the sole instance.18 * A variable that keeps the sole instance. 11 19 */ 12 20 static $instance; … … 36 44 if ( in_array( $cf7_mail_tag, Kintone_Form::get_cf7_special_tags(), true ) ) { 37 45 $mail_tag = new WPCF7_MailTag( 38 sprintf( '[%s]', $cf7_mail_tag ), $cf7_mail_tag, '' 46 sprintf( '[%s]', $cf7_mail_tag ), 47 $cf7_mail_tag, 48 '' 39 49 ); 40 50 … … 44 54 if ( isset( $cf7_send_data[ $cf7_mail_tag ] ) ) { 45 55 if ( is_array( $cf7_send_data[ $cf7_mail_tag ] ) ) { 46 $value = $cf7_send_data[ $cf7_mail_tag ][0];56 $value = ! empty( $cf7_send_data[ $cf7_mail_tag ] ) ? $cf7_send_data[ $cf7_mail_tag ][0] : ''; 47 57 } else { 48 58 $value = $cf7_send_data[ $cf7_mail_tag ]; … … 54 64 55 65 return $return_data; 56 57 66 } 58 67 } -
kintone-form/tags/2.27.6/readme.txt
r3137588 r3177301 7 7 Requires at least: 6.3 8 8 Tested up to: 6.5.4 9 Stable tag: 2.27. 59 Stable tag: 2.27.6 10 10 Requires PHP: 7.4 11 11 License: GPLv2 or later … … 50 50 51 51 == Changelog == 52 53 2.27.6 (2024-10-29) 54 * Fixed an issue where radio buttons could be empty when using Conditional Fields for Contact Form 7 55 52 56 2.27.5 (2024-08-19) 53 57 * Fixed an issue when using the Conditional Fields for Contact Form 7 plugin to set form radio buttons to kintone dropdown fields. Under specific conditions, the required check for radio buttons was not functioning correctly, resulting in empty array data being sent to kintone. This problem has been resolved. -
kintone-form/trunk/kintone-form.php
r3137588 r3177301 4 4 * Plugin URI: 5 5 * Description: This plugin is an addon for "Contact Form 7". 6 * Version: 2.27. 56 * Version: 2.27.6 7 7 * Author: Takashi Hosoya 8 8 * Author URI: http://ht79.info/ … … 10 10 * Text Domain: kintone-form 11 11 * Domain Path: /languages 12 * 13 * @package kintone-form 12 14 */ 13 15 … … 31 33 32 34 define( 'KINTONE_FORM_URL', plugins_url( '', __FILE__ ) ); 33 define( 'KINTONE_FORM_PATH', dirname( __FILE__ ));35 define( 'KINTONE_FORM_PATH', __DIR__ ); 34 36 35 37 $data = get_file_data( … … 70 72 $kintone_form = new Kintone_Form(); 71 73 $kintone_form->register(); 72 73 -
kintone-form/trunk/modules/radio.php
r2897736 r3177301 1 1 <?php 2 /** 3 * Radio module. 4 * 5 * @package kintone-form 6 */ 2 7 8 /** 9 * Radio module. 10 */ 3 11 class KintoneFormRadio { 4 12 … … 8 16 public static function get_instance() { 9 17 /** 10 * avariable that keeps the sole instance.18 * A variable that keeps the sole instance. 11 19 */ 12 20 static $instance; … … 36 44 if ( in_array( $cf7_mail_tag, Kintone_Form::get_cf7_special_tags(), true ) ) { 37 45 $mail_tag = new WPCF7_MailTag( 38 sprintf( '[%s]', $cf7_mail_tag ), $cf7_mail_tag, '' 46 sprintf( '[%s]', $cf7_mail_tag ), 47 $cf7_mail_tag, 48 '' 39 49 ); 40 50 … … 44 54 if ( isset( $cf7_send_data[ $cf7_mail_tag ] ) ) { 45 55 if ( is_array( $cf7_send_data[ $cf7_mail_tag ] ) ) { 46 $value = $cf7_send_data[ $cf7_mail_tag ][0];56 $value = ! empty( $cf7_send_data[ $cf7_mail_tag ] ) ? $cf7_send_data[ $cf7_mail_tag ][0] : ''; 47 57 } else { 48 58 $value = $cf7_send_data[ $cf7_mail_tag ]; … … 54 64 55 65 return $return_data; 56 57 66 } 58 67 } -
kintone-form/trunk/readme.txt
r3137588 r3177301 7 7 Requires at least: 6.3 8 8 Tested up to: 6.5.4 9 Stable tag: 2.27. 59 Stable tag: 2.27.6 10 10 Requires PHP: 7.4 11 11 License: GPLv2 or later … … 50 50 51 51 == Changelog == 52 53 2.27.6 (2024-10-29) 54 * Fixed an issue where radio buttons could be empty when using Conditional Fields for Contact Form 7 55 52 56 2.27.5 (2024-08-19) 53 57 * Fixed an issue when using the Conditional Fields for Contact Form 7 plugin to set form radio buttons to kintone dropdown fields. Under specific conditions, the required check for radio buttons was not functioning correctly, resulting in empty array data being sent to kintone. This problem has been resolved.
Note: See TracChangeset
for help on using the changeset viewer.