• ResolvedPlugin Contributor matsuoatsushi

    (@matsuoatsushi)


    Contact Form 7 5.5.3 で wpcf7_pre_construct_contact_form_properties および wpcf7_contact_form_property_{$name} フィルターフックが導入されましたが、その影響でコンタクトフォームでkintone用の設定が表示されなかったり、動作に影響が出ているようです。

    確認環境:
    ?Contact Form 7 5.5.3
    ?Form data to kintone 2.21.0

    Contact Form 7 5.5.2に戻せば問題はありません。

    おそらく下記と同じ現象かと思われます。
    https://www.ads-software.com/support/topic/the-plugin-isnt-working-with-new-version-of-cf7/

    参考までに、バージョン5.5.3互換となる class-kintone-form-admin.php 用のパッチを作成しました。

    
    --- class-kintone-form-admin.php	2021-08-25 12:35:06.000000000 +0900
    +++ patch/class-kintone-form-admin.php	2021-12-01 22:42:42.000000000 +0900
    @@ -190,7 +190,11 @@
     	public function __construct() {
     
     		add_filter( 'wpcf7_editor_panels', array( $this, 'wpcf7_editor_panels' ) );
    -		add_filter( 'wpcf7_contact_form_properties', array( $this, 'wpcf7_contact_form_properties' ), 10, 2 );
    +		if ( version_compare( WPCF7_VERSION, '5.5.3', '>=' ) ) {
    +			add_filter( 'wpcf7_pre_construct_contact_form_properties', array( $this, 'wpcf7_contact_form_properties' ), 10, 2 );
    +		} else {
    +			add_filter( 'wpcf7_contact_form_properties', array( $this, 'wpcf7_contact_form_properties' ), 10, 2 );
    +		}
     
     		add_action( 'wpcf7_admin_init', array( $this, 'kintone_form_add_tag_generator_text' ) );
     		add_action( 'admin_enqueue_scripts', array( $this, 'register_assets' ) );
    

    以上ご報告まで。

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Takashi Hosoya

    (@tkc49)

    @matsuoatsushi

    ご報告とパッチありがとうございます!
    Form data to kintone を version 2.22.0 にアップデートしました!
    後、パッチプログラムを送って頂いたので、勝手ながら Form data to kintone のコントリビューターにアカウントを追加させていただきました!

    以下のURLの一番下にコントリビュータの一覧があります。
    https://www.ads-software.com/plugins/kintone-form/

    Plugin Contributor matsuoatsushi

    (@matsuoatsushi)

    早速ご対応いただきましてありがとうございます!
    コントリビューターへの追加につきましても、ありがとうございました。光栄です。

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Contact Form 7 5.5.3への対応’ is closed to new replies.