[IP Reservation Modal] Submit button ("+ Add") does not trigger form submission (button.form is null)
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- Ein halber Tag
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- javascript, php
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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?
- Vorherrschende Sprache
- PHP
- Sterne
- 43
- Forks
- 24
- Ø Merge
- 6 Std. 30 Min.
- Gemergte PRs (30 T.)
- 1
Entwicklungsumgebung
Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus pluginsGLPI/addressing
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 45/100
pluginsGLPI/addressing#129 ·
-
Enhancement: Wake on LANOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 35/100
pluginsGLPI/addressing#125 ·
-
ImprovementsOffen
Schwierigkeit 5/5 Über eine Woche Anfängerfreundlichkeit 25/100
pluginsGLPI/addressing#105 ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 42/100
pluginsGLPI/addressing#82 · 1 Kommentar ·
-
Plugin takes too longOffen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 25/100
pluginsGLPI/addressing#77 ·
Alle Issues in pluginsGLPI/addressing
Ähnliche Issues
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 82/100
pluginsGLPI/carbon#396 ·
-
[BUG] Bundle products lose their price in RSS feeds: getPrices() was removedEvtl. vergeben @pcvelz hat das heute übernommen. Offen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
OpenMage/magento-lts#5869 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 85/100
modelcontextprotocol/php-sdk#746 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Map Info Window ButtonsOffen
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 90/100
OpenGIS/waymark-wp#82 ·
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 68/100
Maintainer antworten meist innerhalb von 1 Tag