[IP Reservation Modal] Submit button ("+ Add") does not trigger form submission (button.form is null)
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- javascript, php
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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?
- Lenguaje dominante
- PHP
- Estrellas
- 43
- Forks
- 24
- Merge medio
- 6 h 30 min
- PR fusionados (30 d)
- 1
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de pluginsGLPI/addressing
-
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
pluginsGLPI/addressing#129 ·
-
Enhancement: Wake on LANAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
pluginsGLPI/addressing#125 ·
-
ImprovementsAbierto
Dificultad 5/5 Más de una semana Aptitud para principiantes 25/100
pluginsGLPI/addressing#105 ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 42/100
pluginsGLPI/addressing#82 · 1 comentario ·
-
Plugin takes too longAbierto
Dificultad 4/5 3-5 días Aptitud para principiantes 25/100
pluginsGLPI/addressing#77 ·
Todos los issues de pluginsGLPI/addressing
Issues similares
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 82/100
pluginsGLPI/carbon#396 ·
-
[BUG] Bundle products lose their price in RSS feeds: getPrices() was removedPosiblemente ocupada @pcvelz la tomó hoy. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
OpenMage/magento-lts#5869 ·
Los mantenedores suelen responder en 2 días
-
Dificultad 1/5 1-3 horas Aptitud para principiantes 85/100
modelcontextprotocol/php-sdk#746 ·
Los mantenedores suelen responder en 1 día
-
Map Info Window ButtonsAbierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 90/100
OpenGIS/waymark-wp#82 ·
-
bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día