Open zhuravlev-alexey opened 4 days ago
I'm not sure the fix proposal is correct (at least not complete); I guess a link with a NetworkPort is mandatory and missing on add/update. Anyway, throwing an Exception that prevents the form to load should probably ba avoid for existing cases to be fixed.
Please open a PR with your fix proposal.
Code of Conduct
Is there an existing issue for this?
Version
10.0.16
Bug description
If you do not specify Network ports when creating a socket, then when editing this socket a blank screen is displayed
Relevant log output
[2024-11-01 11:30:10] glpiphplog.CRITICAL: *** Uncaught Exception RuntimeException: Unable to retrieve itemtype in /var/www/glpi/src/Socket.php at line 197 Backtrace : src/CommonGLPI.php:680 Glpi\Socket->showForm() ajax/common.tabs.php:120 CommonGLPI::displayStandardTab() public/index.php:82 require()
Page URL
/front/socket.form.php
Steps To reproduce
Your GLPI setup information
Information about system installation and configuration
Server
GLPI constants
Libraries
SQL replicas
Notifications
Plugins list
Anything else?
Patch to fix /src/Socket.php