Skip to content

fix #4129 【コンテンツ】カスタムフィールドタイプ「グループ」でループ機能を利用しているとき、一度追加したグループを削除できない件を修正#4404

Open
kaburk wants to merge 1 commit into
baserproject:5.2.xfrom
kaburk:5.2.x-#4129

Conversation

@kaburk

@kaburk kaburk commented Jun 2, 2026

Copy link
Copy Markdown
Collaborator

よろしくお願いします。

Copilot AI review requested due to automatic review settings June 2, 2026 11:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

本PRは、カスタムフィールドタイプ「グループ」でループ機能を利用している場合に、追加済みグループを削除できない問題(#4129)を解消するための管理画面テンプレート修正です。フォーム保護(FormProtection / Security)に起因する送信時の不整合を回避しつつ、削除確認ダイアログの表示値が配列/オブジェクトになるケースも安全に扱えるようにしています。

Changes:

  • ループ用フォームで、動的に増減するフィールドの FormProtection 対応(unlock/secure 設定)を調整
  • ループ内 hidden フィールド(custom_table_id)の保護設定を見直し
  • エントリー削除の confirm 文言で display_field が配列/オブジェクトの場合の表示崩れを回避

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
plugins/bc-admin-third/templates/plugin/BcCustomContent/Admin/element/CustomEntries/form_loop.php ループブロック削除時にフォーム保護で弾かれないよう、hidden/unlock 周りを調整
plugins/bc-admin-third/templates/plugin/BcCustomContent/Admin/CustomEntries/edit.php 削除確認ダイアログの表示値が配列/オブジェクトでも破綻しないように調整

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants