The edit handler was fetching the connection twice but never using the result, then constructing a new Connection struct without PortID1/PortID2 fields. The DB update would write NULL into both port columns, severing the cable from both ends. Now the handler fetches the existing row once and updates only the submitted metadata fields in place. |
||
|---|---|---|
| .. | ||
| connections.go | ||
| devices.go | ||
| handlers.go | ||
| models.go | ||
| overview.go | ||
| racks.go | ||
| wall_sockets.go | ||