Nested Repeater Fields with Pagination Enabled Do Not Save Correctly
まだ誰も着手していません。
評価
調査の方向性
提供されたネストされた Repeater JSON から始め、両方の Repeater フィールドでページネーションを使用して、WordPress バックエンドで保存フローを再現します。保存前とページを再度開いた後のネストされた値を比較します。内側の Repeater の内容が保持され、正しく表示されれば完了です。Issue ではソースファイルもテストも指定されていないため、関連する保存パスの特定と回帰テストのカバレッジ追加には、プロジェクトの調査が必要です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When two nested ACF fields (both of type Repeater) have the option "pagination": 1 enabled, the inner field content is no longer saved correctly. The data appears to be lost or overwritten during save.
To Reproduce
Steps to reproduce the behavior:
- Create a Repeater field (Parent Repeater).
- Inside this field, add another Repeater field (Child Repeater).
- Enable
"pagination": 1for both Repeater fields. - Add content to both fields in the WordPress backend.
- Save the post.
- Reopen the post and check the values — the inner Repeater content is missing or not saved correctly.
Expected behavior
The values entered in both nested Repeater fields (with pagination enabled) should be saved and displayed correctly after saving the post.
Screenshots or Video
N/A — the issue is data-related and occurs upon save.
Code
You will find attached the exported JSON of the relevant ACF field group that reproduces the issue. (Attach your JSON export when submitting the ticket.)
Version Information:
- WordPress Version: 6.8.1
- ACF PRO Version: 6.4.2
- PHP Version: 8.1.x
- Browser: Chrome (latest)
JSON:
{
"key": "group_5e67884841724",
"title": "Fieldgroup XYZ",
"fields": [
{
"key": "field_5e67889ad8b2a",
"label": "Flexible Content",
"name": "flexible_content",
"aria-label": "",
"type": "flexible_content",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"allow_in_bindings": 0,
"wpml_cf_preferences": 2,
"admin_only": 0,
"exclude_customer": 0,
"layouts": {
"layout_6604371afv5cd7": {
"key": "layout_6604371afv5cd7",
"name": "layout_xyz",
"label": "Layout XYZ",
"display": "block",
"sub_fields": [
{
"key": "field_68042e0594df7",
"label": "Repeater 1",
"name": "repeater_1",
"aria-label": "",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"allow_in_bindings": 0,
"wpml_cf_preferences": 2,
"admin_only": 0,
"exclude_customer": 0,
"collapsed": "",
"pagination": 0,
"min": 1,
"max": 0,
"layout": "block",
"button_label": "Add Item Repeater 1",
"rows_per_page": 20,
"sub_fields": [
{
"key": "field_66265bd4e88e9",
"label": "Repeater 2",
"name": "repeater_2",
"aria-label": "",
"type": "repeater",
"instructions": "",
"required": 0,
"conditional_logic": 0,
"wrapper": {
"width": "",
"class": "",
"id": ""
},
"allow_in_bindings": 0,
"admin_only": 0,
"exclude_customer": 0,
"collapsed": "",
"pagination": 0,
"min": 1,
"max": 10,
"layout": "row",
"button_label": "Add Item Repeater 2",
"rows_per_page": 20,
"parent_repeater": "field_68042e0594df7",
"sub_fields": [
{
"key": "field_662b9e12d3a7f",
"label": "Media-File",
"name": "media_file",
"aria-label": "",
"type": "file",
"instructions": "",
"required": 1,
"conditional_logic": 0,
"wrapper": {
"width": "50",
"class": "",
"id": ""
},
"allow_in_bindings": 0,
"wpml_cf_preferences": 2,
"admin_only": 0,
"exclude_customer": 0,
"return_format": "array",
"preview_size": "thumbnail",
"library": "all",
"min_width": "",
"min_height": "",
"min_size": "",
"max_width": "",
"max_height": "",
"max_size": "",
"mime_types": "mp3",
"parent_repeater": "field_66265bd4e88e9"
}
]
}
]
}
],
"min": "",
"max": ""
}
},
"button_label": "",
"min": "",
"max": ""
}
],
"location": [
[
{
"param": "post_type",
"operator": "==",
"value": "page"
}
]
],
"menu_order": 1,
"position": "normal",
"style": "default",
"label_placement": "top",
"instruction_placement": "label",
"hide_on_screen": "",
"active": true,
"description": "",
"show_in_rest": 0,
"modified": 1750158065
}
- 主要言語
- PHP
- スター
- 948
- フォーク
- 198
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
AdvancedCustomFields/acf のほかの issue
-
PHP 8.5: "Using null as an array offset" deprecation in ACF_Data::is() when rendering a block with empty data (local-meta.php is_request)対応中かも @faisalahammad が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
AdvancedCustomFields/acf#1044 ·
-
is_preview was called incorrectly notice on every early get_field() since 6.8.10 (acf_revisions::acf_validate_post_id)対応中かも @faisalahammad が 7 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AdvancedCustomFields/acf#1041 · コメント 1 件 ·
-
True / False ACF control bug on RTL layouts対応中かも @elicohenator が 29 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
AdvancedCustomFields/acf#1038 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
AdvancedCustomFields/acf#1034 · コメント 3 件 ·
-
Bug: class-acf-field-icon_picker.php calls wp_get_attachment_image_url() with string Dashicon slug, causing fatal TypeError on PHP 8+対応中かも @antwonw が 41 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
AdvancedCustomFields/acf#1032 · コメント 1 件 ·
AdvancedCustomFields/acf の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Automattic/blocks-engine#3090 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
-
macOS
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
beyondcode/herd-community#1771 ·
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
-
module: user interface priority: high severity: minor type: bug
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信