Disabled Flexible Content layouts create field overrides
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 52/100
Hướng nghiên cứu
Bắt đầu bằng cách tái hiện sự cố với get_field('flexible_content') được gọi từ một hook init, sau đó render các layout bằng have_rows và get_sub_field. So sánh các hàng Layout 2 liên tiếp sau khi vô hiệu hóa Layout 1; công việc hoàn tất khi các trường tiêu đề và văn bản trống vẫn trống thay vì kế thừa các giá trị của hàng trước đó.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Describe the bug
In a Flexible Content, when calling the field before and disabling one of the layout and if you have successive layouts with similar field names, empty fields are override by the previous layout fields content.
To Reproduce
Steps to reproduce the behavior:
- In a Flexible Content (field name
flexible_content), have at least two different layout type with optional fields :- Layout 1
- Layout 2 (optional fields: title, text)
- Add the layout in the flexible content :
- Layout 1
- Layout 2 (fill title and text fields)
- Layout 2 (let title and text empty)
- Disable Layout 1
The second Layout 2 should have the title and text of the previous one.
Before calling the Flexible Content render loop, call get_field('flexible_content') (e.g. in a init wp hook for preprocessing)
The layout are rendered in the usual have_rows loop and the layout field with get_sub_field.
Expected behavior
Layout field should not override
Version Information:
- WordPress 6.9
- PHP 8.3.0
- ACF 6.7.0.2
- Ngôn ngữ chính
- PHP
- Star
- 948
- Fork
- 198
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của AdvancedCustomFields/acf
-
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)Có thể đã có người làm @faisalahammad đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 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)Có thể đã có người làm @faisalahammad đã nhận 5 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AdvancedCustomFields/acf#1041 · 1 bình luận ·
-
True / False ACF control bug on RTL layoutsCó thể đã có người làm @elicohenator đã nhận 27 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
AdvancedCustomFields/acf#1038 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AdvancedCustomFields/acf#1034 · 3 bình luận ·
-
Bug: class-acf-field-icon_picker.php calls wp_get_attachment_image_url() with string Dashicon slug, causing fatal TypeError on PHP 8+Có thể đã có người làm @antwonw đã nhận 39 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 86/100
AdvancedCustomFields/acf#1032 · 1 bình luận ·
Tất cả issue của AdvancedCustomFields/acf
Issue tương tự
-
PHP workflow streaming requests buffer the full SSE responseCó thể đã có người làm @Winoren đã nhận hôm nay. Đang mởreview: medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
langgenius/dify#44270 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug customer-reported
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
MagnaCapax/PMSS#1085 ·
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
nunomaduro/collision#375 ·
-
enhancement good first issue hacktoberfest help wanted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
thetheago/laravel-seeder-versioning#19 ·
Maintainer thường phản hồi trong vòng 1 ngày