fix #4129 【コンテンツ】カスタムフィールドタイプ「グループ」でループ機能を利用しているとき、一度追加したグループを削除できない件を修正#4404
Open
kaburk wants to merge 1 commit into
Open
fix #4129 【コンテンツ】カスタムフィールドタイプ「グループ」でループ機能を利用しているとき、一度追加したグループを削除できない件を修正#4404kaburk wants to merge 1 commit into
kaburk wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
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 | 削除確認ダイアログの表示値が配列/オブジェクトでも破綻しないように調整 |
…グループを削除できない件を修正
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
よろしくお願いします。