[IP Reservation Modal] Submit button ("+ Add") does not trigger form submission (button.form is null)
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- Nửa ngày
- Mức phù hợp với người mới
- 45/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- javascript, php
- Lĩnh vực
- frontend
Hướng nghiên cứu
The reproduction starts at Tools > IP Addressing, then opens the IP reservation modal from an IP network report, so the modal markup is the place to look; the payload does not name a file. Check whether the "+ Add" submit button is rendered outside the form element that holds the asset fields, since the reporter found btn.form is null. Done means clicking Add sends the POST and creates the reservation, and btn.form returns the form.
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
3.2.15
Bug description
Description
When attempting to reserve an IP address from the IP Addressing report modal (IP reservation), clicking the "+ Add" (+ Añadir) button does nothing. No HTTP request (POST/GET) is sent over the network, and no JavaScript errors are printed in the console.
Steps to Reproduce
- Go to Tools > IP Addressing and open an IP network report.
- Click on a free IP to open the IP reservation modal dialog.
- Fill in the required fields (Asset Name, Type, etc.). The validation successfully passes ("Ok you can use this name").
- Click on the "+ Add" button.
Expected Behavior
A POST request should be submitted to create the reservation/item, or an AJAX request should be dispatched.
Actual Behavior
Nothing happens. The Network tab records 0 requests upon clicking the button.
Root Cause Analysis
Inspecting the DOM and running tests via DevTools console confirms that the button is orphaned from the form:
const btn = Array.from(document.querySelectorAll('button')).find(b => b.textContent.includes('Añadir') || b.textContent.includes('Add'));
console.log(btn.type); // "submit"
console.log(btn.form); // null
### Relevant log output
```shell
Page URL
No response
Steps To reproduce
No response
Your GLPI setup information
No response
Anything else?
- Ngôn ngữ chính
- PHP
- Star
- 43
- Fork
- 24
- Merge trung bình
- 6 giờ 30 phút
- Pull request đã merge (30 ngày)
- 1
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 pluginsGLPI/addressing
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
pluginsGLPI/addressing#129 ·
-
Enhancement: Wake on LANĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 35/100
pluginsGLPI/addressing#125 ·
-
ImprovementsĐang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 25/100
pluginsGLPI/addressing#105 ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 42/100
pluginsGLPI/addressing#82 · 1 bình luận ·
-
Plugin takes too longĐang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
pluginsGLPI/addressing#77 ·
Tất cả issue của pluginsGLPI/addressing
Issue tương tự
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
pluginsGLPI/carbon#396 ·
-
[BUG] Bundle products lose their price in RSS feeds: getPrices() was removedCó thể đã có người làm @pcvelz đã nhận hôm nay. Đang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
OpenMage/magento-lts#5869 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 85/100
modelcontextprotocol/php-sdk#746 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Map Info Window ButtonsĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
OpenGIS/waymark-wp#82 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 1 ngày