Mandatory fields are validated even when the container is hidden by conditions
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
- 66/100
Hướng nghiên cứu
Start by reproducing the issue in GLPI 11.0.8 with Fields plugin 1.24.4: attach a container to Tickets, add a required field, and hide the container through its conditions. Trace the ticket save validation for hidden containers; done means tickets save when only required fields in a hidden container are empty, while visible required fields remain validated.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Code of Conduct
- I agree to follow this project's Code of Conduct
Is there an existing issue for this?
- I have searched the existing issues
GLPI Version
11.0.8
Plugin version
1.24.4
Bug description
Hi,
I think I may have found an issue with mandatory fields and container visibility conditions.
Environment:
- GLPI: 11.0.8
- Fields plugin: 1.24.4
Configuration:
- A Fields container is attached to Tickets.
- The container is displayed only when:
- Ticket type = Request
- Category = Visitor Access
- Several fields inside the container are marked as "Required".
Observed behavior:
- Create a new ticket.
- Select a ticket type or category that does not match the display conditions.
- The container is correctly hidden.
- Save the ticket.
- The ticket cannot be saved because the required fields inside the hidden container are considered empty.
Expected behavior:
When a container is hidden by its conditions, required fields inside that container should not be validated.
Alternatively, mandatory validation should only apply when the container is visible.
Additional information:
- If I remove the "Required" flag from the fields, the ticket is saved correctly.
- The issue is reproducible with a single required field in the container.
Could you please confirm whether this is expected behavior, a limitation, or a bug?
Thank you.
Relevant log output
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
No response
- Ngôn ngữ chính
- PHP
- Star
- 115
- Fork
- 82
- Merge trung bình
- 3 ngày 5 giờ
- Pull request đã merge (30 ngày)
- 12
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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 pluginsGLPI/fields
-
[GLPI 12.0.0] Fields are not displayed in insertion mode in the main menu on Knowledge Base article Đang mởStale
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
pluginsGLPI/fields#1256 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
pluginsGLPI/fields#1245 · 4 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
pluginsGLPI/fields#1015 ·
-
bug
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
pluginsGLPI/fields#847 · 6 bình luận ·
Tất cả issue của pluginsGLPI/fields
Issue tương tự
-
jira-created
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
nunomaduro/phpinsights#745 ·
-
status/awaiting_triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
WordPress/plugin-check#1486 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
az-digital/az_quickstart#6019 ·